Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Deadmaster on March 19, 2013, 01:24:53 am

Title: Microsoft Speech APİ Error : .drectve `/DEFAULTLIB:“uuid.lib” /DEFAULTLIB:“uuid.
Post by: Deadmaster on March 19, 2013, 01:24:53 am
 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 (http://pastebin.com/LCpCns2p)

Can anyone suggest what shall I do?
Title: Re: Microsoft Speech APİ Error : .drectve `/DEFAULTLIB:“uuid.lib” /DEFAULTLIB:“uuid.
Post by: Biplab on March 19, 2013, 04:36:58 am
Link against ole32.lib
Title: Re: Microsoft Speech APİ Error : .drectve `/DEFAULTLIB:“uuid.lib” /DEFAULTLIB:“uuid.
Post by: Deadmaster on March 19, 2013, 11:34:31 am
Can you describe how to solve this problem ?
Title: Re: Microsoft Speech APİ Error : .drectve `/DEFAULTLIB:“uuid.lib” /DEFAULTLIB:“uuid.
Post by: stahta01 on March 19, 2013, 01:05:32 pm
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 (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 (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.