Anyone able to build on windows ??
After deleting objects dir and pch's manually or Rebuild workspace I can't build CB, always fails on CC plug-in.
Always getting undefined references in OnEditorActivated for the IsLoadingProject, etc... lines in the beginning of the method.
My brain seems to be tired and I am surely overlooking what to do.
So if you can help me, please do ;-)
Quote from: killerbot on June 20, 2007, 09:06:30 PM
So if you can help me, please do ;-)
Thomas had the same issue - unfortunately I don't know whether and how he resolved that. You might want to PM him...?!
(Not very helpful, but: It works for me.)
Quote from: killerbot on June 20, 2007, 09:06:30 PM
Anyone able to build on windows ??
After deleting objects dir and pch's manually or Rebuild workspace I can't build CB, always fails on CC plug-in.
Always getting undefined references in OnEditorActivated for the IsLoadingProject, etc... lines in the beginning of the method.
My brain seems to be tired and I am surely overlooking what to do.
So if you can help me, please do ;-)
I thought of making this exact post, but I decided I'd wait for the source tree to settle before I did.
the DON helped me out :
Quote
delete devel/libcodeblocks.a and devel/codeblocks.dll and build again (don't REbuild, just build)
libcodeblocks.a is not generated due to some bug and it's using the old version
it's auto prefix/suffix thing issue, rather new issue I think, introduced last week ??
Quote from: killerbot on June 20, 2007, 09:47:56 PM
it's auto prefix/suffix thing issue, rather new issue I think, introduced last week ??
No it wasn't introduced last week. This issue is quite old. My guess it dates back to the revision where "Tabs" were brought back.
I noticed this problem and then changed the XRC files to set the prefix/suffix generation to platform default.
Quote from: killerbot on June 20, 2007, 09:47:56 PM
Quote
libcodeblocks.a is not generated due to some bug and it's using the old version
The bug is at line 421-438 of
sdk/compilercommandgenerator.cpp file.
If output prefix/suffix generation is set to user defined, then Import library name of
foo.dll will become
foo.dllThis somehow works with GCC, but other compilers overwrites the DLL file.
FYI:
Possible patch for issue, the problem started with SVN 4003
Index: src/sdk/compilercommandgenerator.cpp
===================================================================
--- src/sdk/compilercommandgenerator.cpp (revision 4101)
+++ src/sdk/compilercommandgenerator.cpp (working copy)
@@ -421,14 +421,14 @@
TargetFilenameGenerationPolicy PrefixPolicy;
TargetFilenameGenerationPolicy ExtensionPolicy;
target->GetTargetFilenameGenerationPolicy(PrefixPolicy, ExtensionPolicy);
- if(PrefixPolicy == tgfpPlatformDefault)
+ if((PrefixPolicy == tgfpPlatformDefault) || (target->GetTargetType() == ttDynamicLib))
{
if (!fname.GetName().StartsWith(compiler->GetSwitches().libPrefix))
{
fname.SetName(compiler->GetSwitches().libPrefix + fname.GetName());
}
}
- if(ExtensionPolicy == tgfpPlatformDefault)
+ if((ExtensionPolicy == tgfpPlatformDefault) || (target->GetTargetType() == ttDynamicLib))
{
fname.SetExt(compiler->GetSwitches().libExtension);
}
Quote from: stahta01 on June 21, 2007, 04:44:50 PM
Possible patch for issue, the problem started with SVN 4003
Nice catch, Tim. :)
Update: Fix is in Rev 4144.