Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
cbMakefileGen plugin
kisoft:
--- Quote from: gd_on on October 26, 2007, 02:09:01 pm ---I think I have found a key for the problem.
I have 3 different fortran compilers on my PC : g77, g95 and gfortran.
After loading a fortran project, I open Project/Build Options.
...
You'll find effectively in my Fortran project (Motor2.cbp) I sent you a few days ago, that both "<Option compiler=" lines are not the same. First one contains gnu_g95_compiler, and the second one contains gnu_g77_compiler. Normally it is this second one I wanted to use here. The first one should be probably ignored !
--- End quote ---
I will think about. I saw 2 compilers into Motor2.cbp. I being used this project like a template for testing.
Good luck!
stahta01:
Patch that might help someone using C::B Svn.
Tim S
--- Code: ---Index: cbMakefileGen.cpp
===================================================================
--- cbMakefileGen.cpp (revision 17)
+++ cbMakefileGen.cpp (working copy)
@@ -6,7 +6,7 @@
#include "cbmakefilecfg.h"
#include <cbproject.h>
#include <projectmanager.h>
-#include <messagemanager.h>
+#include <logmanager.h>
#include <configmanager.h>
int MakefileGenId = wxNewId();
@@ -120,7 +120,7 @@
msg = _("You need to open a project\nbefore using the plugin!\n"
"C::B MakefileGen could not complete the operation.");
cbMessageBox(msg, _("Error"), wxICON_ERROR | wxOK, Manager::Get()->GetAppWindow());
- Manager::Get()->GetMessageManager()->DebugLog(msg);
+ Manager::Get()->GetLogManager()->DebugLog(msg);
return;
}
Index: Makefile.cpp
===================================================================
--- Makefile.cpp (revision 17)
+++ Makefile.cpp (working copy)
@@ -2,7 +2,7 @@
#include <wx/textfile.h>
#include "Makefile.hpp"
#include <globals.h>
-#include <messagemanager.h>
+#include <logmanager.h>
#include <compiler.h>
#include <compilerfactory.h>
#include <macrosmanager.h>
@@ -104,7 +104,7 @@
wxString l_Msg = _( "Can't found an active target!\n"
"C::B MakefileGen could not complete the operation." );
cbMessageBox( l_Msg, _( "Error" ), wxICON_ERROR | wxOK, (wxWindow *)Manager::Get()->GetAppWindow() );
- Manager::Get()->GetMessageManager()->DebugLog( l_Msg );
+ Manager::Get()->GetLogManager()->DebugLog( l_Msg );
return l_Ret;
}
@@ -178,7 +178,7 @@
l_Rule.SetPrerequisites( objs );
wxString kind_of_output = _T( "unknown" );
- CommandType ct = ctInvalid; // get rid of compiler warning
+ CommandType ct = ctCount; // ctInvalid; // get rid of compiler warning
switch ( l_pTarget->GetTargetType() )
{
case ttConsoleOnly:
--- End code ---
kisoft:
--- Quote from: stahta01 on November 11, 2007, 08:39:12 am ---Patch that might help someone using C::B Svn.
Tim S
--- End quote ---
Thank you for patch. I understand your idea. This piece of code was copied from other plugins.
--- Quote from: stahta01 on November 11, 2007, 08:39:12 am ---
--- Code: ---- CommandType ct = ctInvalid; // get rid of compiler warning
+ CommandType ct = ctCount; // ctInvalid; // get rid of compiler warning
--- End code ---
--- End quote ---
I think about it. This piece of code must be review.
I does migrate to a new computer and I have a lot job now. I am very busy now.
Good luck!
gd_on:
CbMakefileGen does not work (install) with nightly 4630 (Windows 2000). When C::B is started I have a message telling me that the dll was compiled with an old SDK.
Hope you'll find some time to update the windows binary on berlios.
gd_on
kisoft:
--- Quote from: gd_on on November 15, 2007, 04:07:36 pm ---CbMakefileGen does not work (install) with nightly 4630 (Windows 2000). When C::B is started I have a message telling me that the dll was compiled with an old SDK.
Hope you'll find some time to update the windows binary on berlios.
--- End quote ---
I released cbMakefileGen ver 0.3.11.11. Binary and sources updated.
History:
- changed messagemanager on logmanager (thanks stahta01)
- linker cmd formed for known types now
Good luck!
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version