News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Problems with speex --> Wrong behavior?

Started by Wolf, September 21, 2008, 06:58:07 AM

Previous topic - Next topic

Wolf

Hello,
I was having problems linking to 'libspeex' on Windows, when I found out that Code::Blocks (I think) is stripping the first 'lib' of the libraries in the link libraries section of the build options.
My solution was to add it as 'liblibspeex' so it would end up being 'libspeex' as it needs to be.

This is wrong behavior, so I am wondering, is it Code::Blocks stripping this? If it is, I'll post a bug report.

I may see why this would have been there in the first place. But I believe that if the programmer entered 'libsomething', it has to be 'libsomething' and not just 'something', as it is not what has been entered. If I wanted to link to 'something', I would not write 'libsomething'.

-- Wolf --

stahta01

Turn on compiler logging and confirm what is happening.

Post the part of log that shows problem.

State OS Name and Version
State Compiler Name and Version

http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

Note: The "Other Setting" tab is on far right.

Tim S
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]


MortenMacFly

Quote from: Wolf on September 21, 2008, 08:18:51 AM
See http://developer.berlios.de/bugs/?func=detailbug&bug_id=14529&group_id=5358
notice this is not a bug. I closed it therefore. Please do what stahta01 said and post the *full* build log (see my sig for a hint how to do so).

In addition please provide more information about your environment. Eg.g. which version of C::B, which compiler, which version of GCC (???) etc.
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]

MortenMacFly

I forgot: The "lib behaviour" can be switched of in the advanced compiler options anyways. Please always discuss "bugs" in the forums first before submitting to BerliOS. Thanks.
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]