compiling new eq

A forum for the general posts relating to MacroQuest. *DEPRECATED: This forum is no longer in public use, but remains here for your reading pleasure. Enjoy

Moderator: MacroQuest Developers

User avatar
driftinsupra
Official loudmouth
Official loudmouth
Posts: 212
Joined: Tue Jan 28, 2003 9:25 pm

compiling new eq

Post by driftinsupra » Sun Mar 09, 2003 2:29 am

OK so I am not a big programmer but I do have VC++6 so I tried to compile the new eq and got these errors. Can anyone help me out?

Build Log

--------------------Configuration: MacroQuest - Win32 Debug--------------------

Command Lines
Creating temporary file "C:\DOCUME~1\MAINAC~1\LOCALS~1\Temp\RSP2F.tmp" with contents
[
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes /pdb:"Debug/MacroQuest.pdb" /debug /machine:I386 /out:"Debug/MacroQuest.exe" /pdbtype:sept
".\Debug\MacroQuest.obj"
]
Creating command line "link.exe @C:\DOCUME~1\MAINAC~1\LOCALS~1\Temp\RSP2F.tmp"
Output Window
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/MacroQuest.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.



Results
MacroQuest.exe - 2 error(s), 0 warning(s)

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Sun Mar 09, 2003 3:38 am

/SUBSYSTEM:{CONSOLE|WINDOWS|NATIVE|POSIX|WINDOWSCE}[,major[.minor]]

This option tells the operating system how to run the .EXE file. The subsystem is specified as follows:

The CONSOLE subsystem is for a Win32 character-mode application. Console applications are given a console by the operating system. If main or wmain is defined, CONSOLE is the default.


The WINDOWS subsystem applies to an application that does not require a console, probably because it creates its own windows for interaction with the user. Win32s operating systems can only run WINDOWS applications. If WinMain or wWinMain is defined, WINDOWS is the default.


You want windows here.

User avatar
driftinsupra
Official loudmouth
Official loudmouth
Posts: 212
Joined: Tue Jan 28, 2003 9:25 pm

Post by driftinsupra » Mon Mar 10, 2003 4:04 pm

OK so what exactly do i need to do then? I think I have gotten everything else situated but have those last two errros still, whats up?

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Mon Mar 10, 2003 4:47 pm

Alt-F7
Choose the link tab
In the Project Options, change console to windows