Solved

VC++ with STL

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
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.

707 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now