|
-
January 9th, 2009, 10:47 AM
#27
Re: build a project using given obj files
Hey guys,
So I got back from him. He gave me all the obj files, all headers, and buildLog(which I think gives the compiler configuration). He said I should be able to compile except there is one link error right now which he believes caused by lack of toplevel entry point (no main function i guess?).
So what I did was: wrote a main function, include all headers, added all the obj files to the project. Surprisingly there's no linking errors, but 6 compile errors....saying there is no definition of some class:
Error 12 error C2236: unexpected 'class' 'StubVisualCommands'. Did you forget a ';'? c:\documents and settings\sandy\my documents\supple\supplecode\trialtwo\trial two\trial two\weconcreteinterfacedefinition.h 8
(this class is inherited from some other class which was obviously defined)
I commented out the whole class definition. This time several other compiling errors pop up...I kept commenting out stuffs and realized it should not be the right way. So my question is, can it possible because of compiler compatibility? I linked all obj files successfully this time and they are not complaining anything. In that case if it compiles on his machine it should also compile on mine. Anyone has any clue? Here is the BuildLog...Im not sure how to use it. Mine is a Win32 Console project btw...
Build Log
------- Build started: Project: WorldEngine, Configuration: Release|Win32 -------
Command Lines
This edition of Visual C++ does not support the optimizing compiler.
This edition of Visual C++ does not support the optimizing compiler.
Creating temporary file "c:\Supple\WorldEngine\Release\RSP000001.rsp" with contents
[
/AI "C:\Supple\WorldEngine\Release" /D "WIN32" /D "NDEBUG" /D "_MBCS" /FD /EHsc /MT /GS /Fo"Release/" /Fd"Release/vc70.pdb" /W0 /c /Zi /clr /TP
.\BehaviorEngine.cpp
]
Creating command line "cl.exe @c:\Supple\WorldEngine\Release\RSP000001.rsp /nologo"
Creating temporary file "c:\Supple\WorldEngine\Release\RSP000002.rsp" with contents
[
/OUT:"C:\Supple\WorldEngine\Release\WorldEngine.exe" /INCREMENTAL:NO /NOLOGO /DEBUG /PDB:"C:\Supple\WorldEngine\Release/WorldEngine.pdb" /FIXED:No kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
.\Release\ActionDescriptions.obj
.\Release\BehaviorEngine.obj
......
Output Window
Compiling...
BehaviorEngine.cpp
Linking...
LIBCMT.lib(crt0.obj) : error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup
C:\Supple\WorldEngine\Release\WorldEngine.exe : fatal error LNK1120: 1 unresolved externals
Results
Build log was saved at "file://c:\Supple\WorldEngine\Release\BuildLog.htm"
WorldEngine - 2 error(s), 0 warning(s)
Thank you so much!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|