Emuforums.com

Go Back   Emuforums.com > General Discussion > Web development / Programming
Home Register Downloads FAQ Members List Calendar Arcade Mark Forums Read

WON'T YOU JOIN US?
You are not a registered member and
are viewing this site as a guest.
Registration is simple and FREE.
Join this CrowdGather community today.
Registration offers the following perks:

» Less advertising throughout
» Post and participate in discussions
» Network with other forum members
» Free private messaging

join

Reply
 
Thread Tools Display Modes
Old February 14th, 2003, 06:34   #1
SanDRocK
StizowneD
 
SanDRocK's Avatar
 
Join Date: Apr 2001
Location: Edmonton, Alberta
Posts: 298
help plz....

sup,
maybe someone can help me.....
I'm kinda new to programing, and am currently learning C/C++


k here's my problem....
everytime i try building anything....anything at all....
even if its just a simple little hello world dos window like

#include <iostream.h>

int main()
{
cout<<"Hello WORLD!!!!";
return 0;
}


i keep getting an error in the debug window saying the following....

Linking...
LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/test.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

test.exe - 2 error(s), 0 warning(s)

everything was working fine yesterday, but it just started doing that today here for some reason......like i sayed i'm a newb when it comes to C/C++
i kinda get what the error means but i have no idea why it does it lol
__________________
Gaming Rig
OS= Vista Ultimate 64Bit
CPU = Pent D extreme 3.4GHz w/ HT
Mobo = Dell mobo based on intel 955X chipset
Ram = 2Gigs 667MHz DDR2 SDRam
HDD = 320Gig Raid0 Array (2x 160Gig SATA2 (16meg cache each) 10000RPM
GFX = ATI Radeon X850 XT Platinum (512Meg DDR3 model) 21" Dell Widescreen LCD
Audio = SBlaster X-Fi Fatal1ty on 5.1 Digi suroundsound
Faster than a Burning Bud,
More Powerfull than a hit from a bong,
Able to eat huge amounts of snacks,
Look through the smoke..
Its a skunk......
Its a grassfire......
Its....
Its....
GanjaMAN!!! Man of WEED (TM)
SanDRocK is offline   Reply With Quote

Advertisement [Remove Advertisement]
Old February 14th, 2003, 07:08   #2
Teamz
Registered User
 
Join Date: Jun 2002
Location: Montreal
Posts: 6
you probably have created a Window application instead of a Console application when you started your project
__________________
Pat!
Teamz is offline   Reply With Quote
Old February 14th, 2003, 07:26   #3
SanDRocK
StizowneD
 
SanDRocK's Avatar
 
Join Date: Apr 2001
Location: Edmonton, Alberta
Posts: 298
nope console app
__________________
Gaming Rig
OS= Vista Ultimate 64Bit
CPU = Pent D extreme 3.4GHz w/ HT
Mobo = Dell mobo based on intel 955X chipset
Ram = 2Gigs 667MHz DDR2 SDRam
HDD = 320Gig Raid0 Array (2x 160Gig SATA2 (16meg cache each) 10000RPM
GFX = ATI Radeon X850 XT Platinum (512Meg DDR3 model) 21" Dell Widescreen LCD
Audio = SBlaster X-Fi Fatal1ty on 5.1 Digi suroundsound
Faster than a Burning Bud,
More Powerfull than a hit from a bong,
Able to eat huge amounts of snacks,
Look through the smoke..
Its a skunk......
Its a grassfire......
Its....
Its....
GanjaMAN!!! Man of WEED (TM)
SanDRocK is offline   Reply With Quote
Old February 18th, 2003, 07:58   #4
fox-
Registered User
 
Join Date: Apr 2002
Location: Iowa
Posts: 72
SanDRock:

looks like you left iostream.h out of your #include?

you've got:

#include

int main()
{
cout<<"Hello WORLD!!!!";
return 0;
}

should be:

#include "iostream.h"

int main()
{
cout << "hello world";
return(0);
}

other than the half done preprocessor command everything looks fine to me. you may have to replace the "'s with a < > or drop them altogether depending on your compiler.

fox-

Last edited by fox-; February 18th, 2003 at 08:16..
fox- is offline   Reply With Quote
Old February 18th, 2003, 11:48   #5
SnakeBite
Translator
 
SnakeBite's Avatar
 
Join Date: Apr 2002
Location: Norway
Posts: 669
this thread covers all my knowledge for c++...
__________________
This is my new improved sig.
SnakeBite is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +1. The time now is 19:51.

© 2006 - 2012 Emu Forums | About Emu Forums | Advertisers | Investors | Legal | A member of the Crowdgather Forum Community


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.