User forums > Using Code::Blocks
Microsoft Speech APİ Error : .drectve `/DEFAULTLIB:“uuid.lib” /DEFAULTLIB:“uuid.
(1/1)
Deadmaster:
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?
Biplab:
Link against ole32.lib
Deadmaster:
Can you describe how to solve this problem ?
stahta01:
--- Quote from: Deadmaster on March 19, 2013, 11:34:31 am ---Can you describe how to solve this problem ?
--- End quote ---
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.
Navigation
[0] Message Index
Go to full version