microsoft linker options

hi all, I have been using mingw g++ default to create and test win32 applications.
But the lack of ddraw.h in mingw helder files directory I had to move to the
cl.exe (microsoft C/C++ linker) and link.exe.

My Command line is this.
1
2
F:\EXERCISES\win32\GDI\ch02>link /subsystem:windows /libpath:"C:\Program Files\
icrosoft Visual Studio 10.0\VC\lib"  hello4.obj win.obj


But it shows a hell of unresolved symbols.

Could somebody please be kind to give me the correct linker and library options to
pass to the link.exe to link this with win32 libraries and ddraw libraries.

Thanks in advance
sanzilla.
what if somebody be little bit kind enough to help me over here now !
:(.
Here is the linker command line from a nothing special windows32 gui project using msvc2008
/OUT:"C:\Documents and Settings\as185095\My Documents\Visual Studio 2008\Projects\win_001\Debug\win_001.exe" /INCREMENTAL /NOLOGO /MANIFEST 
/MANIFESTFILE:"Debug\win_001.exe.intermediate.manifest" 
/MANIFESTUAC:"level='asInvoker' uiAccess='false'" 
/DEBUG /PDB:"c:\Documents and Settings\as185095\My Documents\Visual Studio 2008\Projects\win_001\Debug\win_001.pdb" 
/SUBSYSTEM:WINDOWS /DYNAMICBASE /NXCOMPAT 
/MACHINE:X86 /ERRORREPORT:PROMPT 
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
i assume you would have to add in ddraw.lib as well.
>>i assume you would have to add in ddraw.lib as well.

Thanks for the previous help,It worked! and in my version of visual C++ Express I didn't get
that ddraw.lib file. So I simply download it from,
http://www.shorthike.com/trac/browser/trunk/libraries/dx80sdk/lib/ddraw.lib
and place it
C:\Program Files\Microsoft SDKs\Windows\v7.0A\Lib
and it worked.

Thanks in advance.

And in the gcc case there is no ddraw.h helder file in C:\dev-cpp\include and it also can be
fixed by downloading the ddraw.h and place it on \include and download the ddraw.lib
and place it in the \lib and now it's compiling with the g++ too.

I don't know why mingw ppl doesn't supply that library and helder support for ddraw. :<
Topic archived. No new replies allowed.