Solved

VC++ with STL

Posted on 1998-04-10
3
209 Views
Last Modified: 2013-12-14
I am getting the following link error:
Linking...
LIBC.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Release/qsort with list.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

Here are the include statements
#include <iostream>
#include <fstream>
#include <wtypes.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "Record.h" //My own header, it works bcuz it //compiles
#include <list>
0
Comment
Question by:maj030598
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
nietod earned 100 total points
ID: 1184181
answer coming.
0
 
LVL 22

Expert Comment

by:nietod
ID: 1184182
It looks to me like you are trying to create a console application because you are including stdio and iostream.  VC thinks you want to create a windows GUI allication because it is looking for WinMain().  (WinMain() is the main procedure of a windows program, just like Main() is the main procedure of a console program.)

If this is true, you need to create a console project for theses files, not a windows GUI project.
0
 

Author Comment

by:maj030598
ID: 1184183
You are right about that. It was my mistake. Thanx a lot
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question