News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

building rev 4122

Started by killerbot, June 20, 2007, 09:06:30 PM

Previous topic - Next topic

killerbot

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 ;-)

MortenMacFly

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.)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

killua

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.

killerbot

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 ??

Biplab

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.dll

This somehow works with GCC, but other compilers overwrites the DLL file.
Be a part of the solution, not a part of the problem.

stahta01

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);
}
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

Biplab

#6
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.
Be a part of the solution, not a part of the problem.