Compiling Applications

This is a discussion on Compiling Applications within the C++ Programming forums, part of the General Programming Boards category; this is a really dum question, but its making me mad! lol, alright, well, im using microsofts visual c++ for ...

  1. #1
    Registered User
    Join Date
    Jan 2003
    Posts
    5

    Question Compiling Applications

    this is a really dum question, but its making me mad! lol, alright, well, im using microsofts visual c++ for a compiler, i made a simple code for just to show "hello world" here it is,
    #include <iostream.h>
    int main()
    {
    cout<<"Hello World";
    return 0;
    }
    but when i compile it, it says no errors, but when i try to make it a .exe, it says i have 2 errors,

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

    how do i fix it? i cant seem to do anything until i fix it, well, thanks for any help, i really need it, as you can tell, im just starting off, actually, its my first day. also, when i went to new file, i selected "win32 application" and then a blank document... would that have anything to do with it? should i select "win32 console application" thanks again for any help given?
    -Matt
    Last edited by Arachnid; 01-05-2003 at 12:05 AM.

  2. #2
    Registered User
    Join Date
    Jan 2003
    Posts
    5
    yea, thats what i was thinking, in fact, i just edited the post to say that i was using the win32 application, not the console application, lol, thanks, lemme try that out

  3. #3
    Registered User
    Join Date
    Jan 2003
    Posts
    5
    hmm, although, i wanna make it a windows type app, well, i wanna learn the right way to make a game, so that in the future once i learn well, ill be able to make a game. should i use win32 application, or win32 console application? i dont want just dum little stuff, but win32 application looks harder, which one should i use?

  4. #4
    Registered User
    Join Date
    Nov 2002
    Posts
    1,109
    if you are just starting to learn, start with console apps...but otherwise, if you have a handle on c++, then imo, go ahead and learn win32api.

  5. #5
    Registered User
    Join Date
    Jan 2003
    Posts
    5
    alright, well, can you add pictures and like, i know this is dum, but like, i dowt you could make a good game on console, like, not those dum ones but pretty cool ones like starcraft and stuff, i know i wouldnt be able to make it now, but you know, once i get really really good, i dont wanna have to relearn everything. like arnt the different ones, like api and console, arnt they diff languages all together almost? thanks
    -Matt

  6. #6
    Registered User
    Join Date
    Jan 2003
    Posts
    5
    yea, i know the basics, but like, im trying to see what im up against... like, how hard is it to add a picture? like a .jpg or just things like that, is c++ really hard? the basics arnt, but thats why they are called the basics. im hoping to make an online starcraft type game, after a few more months of learning c++ ill be pretty good to go, but like, am i using the right program? is c++ what i need? can c++ hook up to a database also? thanks
    -Matt

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Get Installed applications list and applications activity
    By arunarora in forum C++ Programming
    Replies: 5
    Last Post: 05-25-2009, 09:41 AM
  2. Problem compiling files that store functions
    By tiachopvutru in forum C++ Programming
    Replies: 10
    Last Post: 05-30-2008, 05:42 PM
  3. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  4. A question about windows programming
    By Hussain Hani in forum Windows Programming
    Replies: 16
    Last Post: 05-23-2007, 07:38 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21