User forums > Using Code::Blocks
ld.exe cannot find /usr/lib/libc.so.3.5
eb:
--- Quote ---I strongly suggest you first try at the command line, learn how compiler/linker work and then start using an IDE. Otherwise you'll never learn how to fix such yourself. That's all I can say... seriously.
--- End quote ---
I believe you've hit the nail on the head.
The Mingw compiler seemed to be the most likely candidate for use with CodeBlocks. WRONG!
All 3 libraries came with services for windows. After our last exchange I took a harder look at what came with it. I now realize it came with 'executables' that don't end with .exe, so I have to compile (and probably run it) in a shell.
And since the error message "cannot find /usr/lib/libcompat30.a" is apparently generated by ld.exe and just 'relayed' via CodeBlocks then I guess you are right, this isn't a CodeBlocks question after all.
Radek:
eb, Morten isn't wrong. There are many people around which are able to run CodeBlocks and gcc (that means mingw) from windows but I've never heard that they would use some "Microsoft tools" for it. The common experience is that all such "tools" are trying to convince you that the only right decision is abandoning everything that does not originate in Redmont. Among others, the compiler in "SFU" is awfully outdated (the current version of GCC is 4.6), the libraries seems to be outdated as well.
IMO, you'd better delete the "SFU" (I have checked the link posted by Morten) from your disk and take a "standard way" of installing CodeBlocks on windows. Well, I do not have even a single byte of windows on my computer so that I cannot do recomendations, but other people should be able. Therefore, if there are windows users around, please post your experience.
(1) How to install a compiler.
(2) How to install CodeBlocks.
(3) How to make all this work.
If your primary goal is emulating Linux on windows then do not use "SFU" again. Install VirtualBox instead and install your favorite flavor or Linux in it. You will solve no problems most likely.
eb:
I know Morten is right. And except for the occasional glitch I've been able to run CodeBlocks with gcc and g++ just fine. But now I have a project that deals with Remote Procedure Calls in which involves the clnt_create function and the only two libraries that I can find that DEFINE the function are included in Cygwin and Microsoft Services for Unix. So in the process of trying to Frankenstein this all together I hit an error that I mistook for a CodeBlocks error.
So now I'm having to apologize all over the place and resign myself to C shell hell.
btw - thanks for the tip re: VirtualBox!
MortenMacFly:
--- Quote from: eb on February 01, 2012, 07:13:02 pm ---involves the clnt_create function and the only two libraries that I can find that DEFINE the function are included in Cygwin and Microsoft Services for Unix.
--- End quote ---
...maybe this helps:
http://docs.oracle.com/cd/E19683-01/816-1435/advrpcpt-29368/index.html
Navigation
[0] Message Index
[*] Previous page
Go to full version