-
trying to compile a file with nmake so i open a dos prompt and write c:\gdidemo\nmake then press enter cgidemo is the file that i want to build that dir contains the source code too and the makefile file and here is what error i get
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
cl -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D_WINNT -
D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -DWIN32 -D_WIN32 -Z7 -O
d -DNT -DWIN -DNOT_IMPLEMENTED gdidemo.c
'cl' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'cl' : return code '0x1'
Stop.
i m a nwebie to this stuff and maybe that quest do not belong here but though that this forum was the more appropriate one
thnks
-
Did you run vcvars32.bat first? cl.exe is the compiler.
-
1 Attachment(s)
thats the file i m trying to complile i copy in the same dir nmake,ntwin32.mak,win32.mak and the files in the zip than i run nmake what i m doing worng how to compile that file?
-
Don't copy the program files into it, just open the .dsw file in developer studio and build it from there.
If you don't have dev studio, make a NEW folder, put those files in it, and run (from the same command prompt) vcvars32.bat
You can't "compile" cl.exe -- it IS the compiler :D
-
when i try to compile the project using vc i get these errors
didemo.obj : error LNK2001: unresolved external symbol _UnregisterAppClass
Gdidemo.obj : error LNK2001: unresolved external symbol _CreateAppWindow
Gdidemo.obj : error LNK2001: unresolved external symbol _RegisterAppClass
Gdidemo.obj : error LNK2001: unresolved external symbol _CreateMDIClientWindow
Gdidemo.obj : error LNK2001: unresolved external symbol _DisplayDialogBox
Gdidemo.obj : error LNK2001: unresolved external symbol _AboutDlgProc@16
Gdidemo.obj : error LNK2001: unresolved external symbol _CreateBounceWindow
Gdidemo.obj : error LNK2001: unresolved external symbol _CreateDrawWindow
Gdidemo.obj : error LNK2001: unresolved external symbol _CreateMazeWindow
Gdidemo.obj : error LNK2001: unresolved external symbol _CreateXFormWindow
Gdidemo.obj : error LNK2001: unresolved external symbol _CreatePolyWindow
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Gdidemo.exe : fatal error LNK1120: 12 unresolved externals
Error executing link.exe.
Gdidemo.exe - 13 error(s), 0 warning(s)
though that nmake doing something different
-
You need to make a new Win32 Application (not MFC) project, and add the source files you have to it. Then try recompiling.
-
k i create a new win32app and add all the files i see in it the compile it k it says the compiler but i search all my h/d no gdidemo.exe nowhere
-
There should be a folder "Release" or "Debug" under the folder where you put the project.
-
yes it is but contain nothing:)
-
-
1 Attachment(s)
Here's a project for you:
-
i did that and i m getting this asa respond on the debug window
-------------------Configuration: gdidemo - Win32 Debug--------------------
gdidemo.exe - 0 error(s), 0 warning(s)
-
Then is should be compiled....
-
no gdidemo.exe in none of my h/d
-
I just tried compiling it, and I got the following errors:
--------------------Configuration: Gdidemo - Win32 Debug--------------------
Compiling...
Gdidemo.c
c:\temp\gdi\gdidemo.c(35) : warning C4028: formal parameter 1 different from declaration
c:\temp\gdi\gdidemo.c(35) : warning C4028: formal parameter 2 different from declaration
Linking...
Gdidemo.obj : error LNK2001: unresolved external symbol _UnregisterAppClass
Gdidemo.obj : error LNK2001: unresolved external symbol _CreateAppWindow
Gdidemo.obj : error LNK2001: unresolved external symbol _RegisterAppClass
Gdidemo.obj : error LNK2001: unresolved external symbol _CreateMDIClientWindow
Gdidemo.obj : error LNK2001: unresolved external symbol _DisplayDialogBox
Gdidemo.obj : error LNK2001: unresolved external symbol _AboutDlgProc@16
Gdidemo.obj : error LNK2001: unresolved external symbol _CreateBounceWindow
Gdidemo.obj : error LNK2001: unresolved external symbol _CreateDrawWindow
Gdidemo.obj : error LNK2001: unresolved external symbol _CreateMazeWindow
Gdidemo.obj : error LNK2001: unresolved external symbol _CreateXFormWindow
Gdidemo.obj : error LNK2001: unresolved external symbol _CreatePolyWindow
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Gdidemo.exe : fatal error LNK1120: 12 unresolved externals
Error executing link.exe.
Gdidemo.exe - 13 error(s), 2 warning(s)
-
yep thats was mention in the posts above can u please read them
-
It works for me now...nice graphics! ;)
-
what a bug i think it was a bug
i was compiling the project that parksie post at D:\Documents and Settings\Administrator\Desktop\1 and i always got back errors i compiled then on c:\temp and it worjked
thnks guys
-
-
but i would be interested to know the steps involved in changing the project from the form i post it to the form the parksie did
-
This is what I did:
1. Delete the gdidemo.def file -- you don't need it since the linker does it automatically now :)
2. Delete the previous project files
3. Create a new "Win32 Application"
4. Add all .c, .h, and .rc files to this project
5. Build it
-
please keep up with me for a little more don't seem to get it this is what i m doing copy all the files to a dir del the def,dsp,dsw files trying to create a new win32app in the some folder and i me getting the error that the workspace exists what else do i have to delete?
-
You shouldn't get that error :confused: Delete the Release and Build folders as well. You need to make sure that you actually create it IN that folder, rather than another folder inside it which VC has a tendency to do.
-
i m a newbie remember what these files r?reliese and build what ext?
-
Sorry, I'm tired :eek:
It's the Release and Debug folders, if they're there.
Okay. Step-by-step:
1. Open VC++
2. Make a new Win32 Application in a new folder
3. Find the folder you made that in and copy the .c, .h, and .rc files into it.
4. Add those files to the project
5. Press the Build button (or hit Ctrl-F5)