Err for nothing!!!!!!

This is a discussion on Err for nothing!!!!!! within the C++ Programming forums, part of the General Programming Boards category; Hi..... im using visualc++6 compiler , I creat a class in an empty project , i out it in a ...

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

    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
    Posts
    9,796
    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.

    -Prelude
    My best code is written with the delete key.

  3. #3
    Budding Synth Programmer samGwilliam's Avatar
    Join Date
    Feb 2002
    Location
    Trefforest
    Posts
    368
    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
    Location
    Egypt
    Posts
    161

    Unhappy

    Unfortuntilly
    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-22-2010, 12:34 AM
  2. New string functions
    By Elysia in forum C Programming
    Replies: 11
    Last Post: 03-28-2009, 06:03 AM
  3. OOP Question DB Access Wrapper Classes
    By digioz in forum C# Programming
    Replies: 2
    Last Post: 09-07-2008, 05:30 PM
  4. Replies: 1
    Last Post: 07-31-2006, 03:57 PM
  5. Array of Global Classes
    By CrymsonSoul in forum C++ Programming
    Replies: 8
    Last Post: 06-05-2006, 01:48 AM

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