Thread: Err for nothing!!!!!!

  1. #1
    looking for the truth moemen ahmed's Avatar
    Join Date
    Feb 2002

    Err for nothing!!!!!!

    Hi..... im using visualc++6 compiler , I creat a class in an empty project , i out it in a header file until now its ok.....but when i try to add empty source file to my project Err occured
    this message of the linker:

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

    help please!!!!!!

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    That error usually occurs when you try to write a win32 app in a console project. Create a new project and choose Win32 App instead of Console App and see if it works better.

    My best code is written with the delete key.

  3. #3
    Budding Synth Programmer samGwilliam's Avatar
    Join Date
    Feb 2002
    If a variable is declared in another file, they must be redeclared in the current file with the extern qualifier if they are to be used in that file.
    MSVC++ 6.0

  4. #4
    looking for the truth moemen ahmed's Avatar
    Join Date
    Feb 2002


    I mads another progect(win32 project just like the first was!) then i put my class in header file , I put empty source file
    if i try to build it .............he occure the same error.........while its empty???????????

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to decrypt / encrypt using libgcrypt ? (ARC4)
    By jabka in forum C Programming
    Replies: 6
    Last Post: 04-21-2010, 11:34 PM
  2. New string functions
    By Elysia in forum C Programming
    Replies: 11
    Last Post: 03-28-2009, 05:03 AM
  3. OOP Question DB Access Wrapper Classes
    By digioz in forum C# Programming
    Replies: 2
    Last Post: 09-07-2008, 04:30 PM
  4. Replies: 1
    Last Post: 07-31-2006, 02:57 PM
  5. Array of Global Classes
    By CrymsonSoul in forum C++ Programming
    Replies: 8
    Last Post: 06-05-2006, 12:48 AM