![]() |
|
#1
|
|||
|
|||
i've been having this problem lately.i use visual studio 6 to compile most of my code. For some reason, it is compiling fine but would build the .exe file. The message that it outputs is most confusing to me, <the c++ beginner>. i was wondering if anyone would be able to, if possible of course, compiler the program and see if he gets the same error message.
please let me know. thanks in adavance. here is the header, implementation, and driver files CPP / C++ / C Code:
CPP / C++ / C Code:
Last edited by LuciWiz : 23-Mar-2005 at 14:34.
Reason: Please insert your C code between [c] & [/c] tags
|
|
#2
|
|||
|
|||
[c/c++] way is not workingfor some reason whenever i try using that when posting,all it does is just gives me smilies.
|
|
#3
|
|||
|
|||
|
Quote:
[ c ] Put this after the last line of code (without the spaces) [ /c ] What is the error message? (Be specific: paste the entire error messages into the post.) Regards, Dave |
|
#4
|
||||
|
||||
|
You had this when I edited your post:
Quote:
Please read the tutorial in my signature. Or you could just follow Dave's directions. __________________
Please read these Guidelines before posting on the forum "A person who never made a mistake never tried anything new." Einstein |
|
#5
|
|||
|
|||
thanks a bunchas usual,thank you guys,for pointing out things to me.lol
i really mean it. anyways the errors that i am getting are as follows : --------------------Configuration: rational - Win32 Debug-------------------- Linking... LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16 Debug/rational.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. rational.exe - 2 error(s), 0 warning(s) there's probably something wrong in the code itself?but where? ah..the pain!! |
|
#6
|
|||
|
|||
|
Quote:
It means that you have set up the project to be a Windows (GUI) program. The entry point of a Windows program is _WinMain() instead of main(). You need to change the project application to be Windows Console. I don't currently have Visual Studio 6, so I can't give you the exact steps for project creation. Regards, Dave |
|
#7
|
|||
|
|||
thank you so muchThat was a big insight. The program runs fine now. Thanks a lot dave,that was really nice of you.
I would never have thought about it. |
Recent GIDBlog
Toyota - 2008 August Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Apache / PHP problem, maybe output length? | HaganeNoKokoro | Apache Web Server Forum | 3 | 07-Aug-2008 04:42 |
| Need advice on a disturbing problem | JUNK KED | Open Discussion Forum | 6 | 31-Mar-2005 13:51 |
| Css design problem | JUNK KED | Web Design Forum | 4 | 25-Jan-2005 17:45 |
| Another FX 5600 problem (but with details that might shed light on this) | BobDaDuck | Computer Hardware Forum | 2 | 16-Apr-2004 07:53 |
| unwanted scrollbar problem | kelly001 | Web Design Forum | 3 | 24-Oct-2003 10:44 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The