Solved

VC++ with STL

Posted on 1998-04-10
3
205 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
  • 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

766 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