Solved

VC++ with STL

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

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…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

773 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