User forums > Using Code::Blocks

Problem with strsafe.h on settings

(1/2) > >>

mythcat:
Hi

I try using DirectX template from C::B , but C::B not find "strsafe.h".
I use Code::Blocks with mingw32 10.05 .
What i make wrong ?

Thank you.

MortenMacFly:

--- Quote from: mythcat on December 22, 2010, 07:38:53 pm ---I try using DirectX template from C::B , but C::B not find "strsafe.h".

--- End quote ---
http://lmgtfy.com/?q=strsafe.h

...reveals in the first link:
"Strsafe.h is available in the Windows SDK starting with Windows XP with Service Pack 2 (SP2)."

mythcat:
Yes I've found .

--- Quote ---You should also note that Windows SDK[8] shall be installed in order to compile Windows app.
--- End quote ---
I download it from here: http://www.microsoft.com/downloads/details.aspx?FamilyID=e6e1c3df-a74f-4207-8586-711ebe331cdc&DisplayLang=en
But I got this error :

--- Code: ----------------- Build: Debug in testDX9 ---------------

cl : Command line warning D9002 : ignoring unknown option '-g'
cl : Command line warning D9002 : ignoring unknown option '-ggdb'
cl : Command line warning D9024 : unrecognized source file type 'Files\Microsoft', object file assumed
cl : Command line warning D9024 : unrecognized source file type 'Visual', object file assumed
cl : Command line warning D9024 : unrecognized source file type 'Studio', object file assumed
LINK : fatal error LNK1181: cannot open input file 'Files\Microsoft.obj'
Process terminated with status 2 (0 minutes, 0 seconds)
1 errors, 0 warnings
 
--- End code ---
I think C::B not see the compiler from Microsoft SDK ... and this is from Visual Studio
How i set it ?

stahta01:
Set default compiler to the correct Compiler; not MinGW GCC if you wish to use MS Visual Studio!
Re-do the project from template using the correct Compile; do NOT pick MinGW GCC if you wish to use MS Visual Studio!

Tim S.

mythcat:
I try use Compiler from MS SDK , not  MS Visual Studio.
But C::B not see MS SDK compiler, if it is on \Bin.
My path is something like this :

--- Code: ---C:\Program Files\Microsoft SDKs\Windows\v6.1\Bin
--- End code ---
Maybe correct way is to install MS SDK and next install C::B.
I think is more easy if C::B come with some default settings for each compiler.
Maybe some tutorials is need to understand how is corect way to set up C::B.
Is good to be fully custom , but become dizzy with new users like me.
Thank you .
Regards.

Navigation

[0] Message Index

[#] Next page

Go to full version