News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

[SOLVED] Does Code::Blocks embed libs for Win32 function "UuidCreate"?

Started by monsieurouxx, January 18, 2011, 02:19:20 PM

Previous topic - Next topic

monsieurouxx

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?


stahta01

Quote from: monsieurouxx on January 18, 2011, 02:19:20 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.
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]

monsieurouxx

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.

oBFusCATed

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
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

MortenMacFly

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