Code::Blocks Forums

User forums => Help => Topic started by: Bolza on March 28, 2012, 10:49:53 am

Title: Code::Blocks linker fails with “No such file or directory” message
Post by: Bolza on March 28, 2012, 10:49:53 am
Hi i'm trying to modify a simple telnet client starting from an existing Code::Blocks Project that i found. I'm in a hurry so i have no time to write one from skretch (i'm not a c++ programmer).

Anyway the problem is when i try to build the code, the linker ends with this message:

Code
Linking console executable: bin\Debug\cClient.exe
mingw32-g++.exe: ..\..\..\..\..\..\Programmi\CodeBlocks\MinGW\lib\libwininet.a: No such file or directory
mingw32-g++.exe: ..\..\..\..\..\..\Programmi\CodeBlocks\MinGW\lib\libws2_32.a: No such file or directory
mingw32-g++.exe: ..\..\..\..\..\..\Programmi\CodeBlocks\MinGW\lib\ssleay32.a: No such file or directory
mingw32-g++.exe: ..\..\..\..\..\..\Programmi\CodeBlocks\MinGW\lib\libeay32.a: No such file or directory
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings

It doesnt even fails, just dont build the project.
I cant find these libs on the internet either -.-
Any idea on how to link these libraries or just find where are declared?

PS: I'm on Windows 7
Title: Re: Code::Blocks linker fails with “No such file or directory” message
Post by: oBFusCATed on March 28, 2012, 11:19:56 am
You get the standard answer:
Read this: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29

This is the most important to read and understand: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(errors)#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
Title: Re: Code::Blocks linker fails with “No such file or directory” message
Post by: Bolza on March 28, 2012, 12:01:37 pm
You get the standard answer:
Read this: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29

This is the most important to read and understand: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(errors)#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

I will turn on the full Compiler logging but i really can't see how this can help me.
I receive errors from the linker, not the compiler.
(I alread read the FAQ and found nothing helpful)
Title: Re: Code::Blocks linker fails with “No such file or directory” message
Post by: oBFusCATed on March 28, 2012, 01:38:24 pm
The compiler log will print the full linker command, too.
Then you can inspect it to see if it is correct.
You can even run it in the command line to see if it works (probably it won't).