Author Topic: [SOLVED] Does Code::Blocks embed libs for Win32 function "UuidCreate"?  (Read 5733 times)

Offline monsieurouxx

  • Single posting newcomer
  • *
  • Posts: 4
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?

« Last Edit: January 19, 2011, 09:55:21 am by monsieurouxx »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7665
    • My Best Post
Re: Does Code::Blocks embed libs for Win32 function "UuidCreate"?
« Reply #1 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.
« Last Edit: January 18, 2011, 03:23:13 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline monsieurouxx

  • Single posting newcomer
  • *
  • Posts: 4
Re: [SOLVED] Does Code::Blocks embed libs for Win32 function "UuidCreate"?
« Reply #2 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: [SOLVED] Does Code::Blocks embed libs for Win32 function "UuidCreate"?
« Reply #3 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
(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!]

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9702
Re: [SOLVED] Does Code::Blocks embed libs for Win32 function "UuidCreate"?
« Reply #4 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ