Link to home
Start Free TrialLog in
Avatar of maj030598
maj030598

asked on

VC++ with STL

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>
ASKER CERTIFIED SOLUTION
Avatar of nietod
nietod

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nietod
nietod

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.
Avatar of maj030598

ASKER

You are right about that. It was my mistake. Thanx a lot