Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: monsieurouxx on January 18, 2011, 02:19:20 pm

Title: [SOLVED] Does Code::Blocks embed libs for Win32 function "UuidCreate"?
Post by: monsieurouxx on January 18, 2011, 02:19:20 pm
Hi,

I'm trying to compile a project (not made by me) that has the following includes :
<fstream>
<iostream>
<stack>
<cstring>
<windows.h>
<sys/param.h>

I find it difficult to know which of those includes will be properly linked with the MinGW32 libs embedded in Code::blocks. For example, the function "UuidCreate", which is purely a Microsoft function, is probbaly in one of the many MinGW32 libs, but how tdo I find out which one it is? Doesn't Code::Blocks include by default all MinGW32 libs in its search path?

Title: Re: Does Code::Blocks embed libs for Win32 function "UuidCreate"?
Post by: stahta01 on January 18, 2011, 02:51:26 pm
Doesn't Code::Blocks include by default all MinGW32 libs in its search path?

No, Code::Blocks includes nothing by default; the CB Wizards do add some libraries if used to start a project.

Please turn on Full Compiler Logging to see what Code::Blocks passes to Compiler.
http://wiki.codeblocks.org/index.php?title=FAQ#Q:_How_do_I_troubleshoot_an_compiler_problem.3F

Tim S.
Title: Re: [SOLVED] Does Code::Blocks embed libs for Win32 function "UuidCreate"?
Post by: monsieurouxx on January 19, 2011, 09:56:50 am
My issue that I couldn't find in what MinGW32 lib the function was.
By trial and error, I eventually found out that function was in the library "rpcrt4" (file "librpcrt4.a").
So my issue is solved, but I'd be interested in knowing how one can find in libraries a function is defined depending on the compiler.
Title: Re: [SOLVED] Does Code::Blocks embed libs for Win32 function "UuidCreate"?
Post by: oBFusCATed on January 19, 2011, 12:48:36 pm
You can use:
1. The libfinder plugin
2. the hardcore nm + grep
3. if the lib is a dll you can use the dependency walker executable
Title: Re: [SOLVED] Does Code::Blocks embed libs for Win32 function "UuidCreate"?
Post by: MortenMacFly on January 19, 2011, 03:34:52 pm
Use the symbol table plugin as a wrapper for nm and stuff.

This should fit your needs.

Btw: This question is hardly related to Code::Blocks.