Author Topic: Microsoft Speech APİ Error : .drectve `/DEFAULTLIB:“uuid.lib” /DEFAULTLIB:“uuid.  (Read 6311 times)

Offline Deadmaster

  • Single posting newcomer
  • *
  • Posts: 2
 0 down vote favorite
   

I have a problem with SAPİ: While i am compiling some code, I encounter this error in CodeBlocks:

||Warning: .drectve /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" ' unrecognized| obj\Debug\main.o||In functionmain':| C:\Documents and Settings\Mert\Desktop\yazi\okuproje\main.c|11|undefined reference to CoInitialize@4'| C:\Documents and Settings\Mert\Desktop\yazi\okuproje\main.c|14|undefined reference toCoCreateInstance@20'| C:\Documents and Settings\Mert\Desktop\yazi\okuproje\main.c|29|undefined reference to `CoUninitialize@0'| ||=== Build finished: 3 errors, 1 warnings ===|

My Code:http://pastebin.com/LCpCns2p

Can anyone suggest what shall I do?

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Link against ole32.lib
Be a part of the solution, not a part of the problem.

Offline Deadmaster

  • Single posting newcomer
  • *
  • Posts: 2
Can you describe how to solve this problem ?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7592
    • My Best Post
Can you describe how to solve this problem ?

1. Figure out the name of the compiler you are using.
2. If MinGW GCC, remove the Compiler options for MS Visual C++
3. Fix the linker error if it still exists.

Step 1: This link will help http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F

Step 2: Likely solved by removing incorrect "other options" under "compiler settings".

Link that should help for step 3: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_What_do_I_need_to_know_when_using_3rd_party_libs.3F

Tim S.
« Last Edit: March 19, 2013, 01:27:43 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