Help interpreting error message:

This is a discussion on Help interpreting error message: within the C Programming forums, part of the General Programming Boards category; Hello, I was wondering if anyone could tell me what this error message means and how to remedy it. Never ...

  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    18

    Help interpreting error message:

    Hello,
    I was wondering if anyone could tell me what this error message means and how to remedy it. Never seen it before!

    LIBC.lib(wwincrt0.obj) : error LNK2001: unresolved external symbol _wWinMain@16

    Not sure if the code is necessary but...

    Code:
    #include <stdio.h>
    #include "portfolio.h"
    #include "myinfo.h"
    #include "datarange.h"
    #include "binary.h"
    #include "io.h"
    #include "grades.h"
    #include "fileio.h"
    #include "utilities.h"
    #include "menu.h"
    
    void portfolio (void)
    
    {
    	char selection;
    
    
    	printf ("Which assignment would you like to review?\n\n");
    	printf ("2.) Assignment #2--MyInfo:\n");
    	printf ("3.) Assignment #3--Dataranges:\n");
    	printf ("4.) Assignment #4--Formatted Output Single Characters:\n");
    	printf ("5.) Assignment #5--Single Characters or ASCII table:\n");
    	printf ("6.) Assignments #6 and 7 -- Grade Calculator:\n");
    	printf ("8.) Assignment #8--File I/O:\n");
    	printf ("9.) Assignments #9, #10, & #11 - Tree Calculator:\n");
    	printf ("To exit program, press ENTER:\n");
    	printf ("\n\n >>");
    
    	selection = (char)getchar();
    
    	while ('\n'!= getchar());
    
    	{
    
    		switch (selection) {
    		case '2':
    			identity();
    			break;
    		case '3':
    			charrange();
    			intrange ();
    			shortrange();
    			longrange ();
    			break;
    		case '4':
    			io();
    		break;
    		case '5':
    			menu();
    			break;
    		case '6':
    			grades();
    			break;
    		case '8':
    			fileio();
    			break;
    		case '9':
    			printf ("Sorry--assignment not yet completed\n");
    			break;
    		}
    
    	
    		
    	}
    
    }
    Header.....

    Code:
    #ifndef PORTFOLIO_H
    #define PORTFOLIO_H
    
    	void portfolio (void);
    
    #endif
    Many thanks in advance!!

  2. #2
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,246
    It can't find the WinMain() function which you have set as the application entry point. WinMain is the equivalent to main() for console applications.

  3. #3
    Registered User
    Join Date
    Oct 2005
    Posts
    18
    thanks!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. newb question about interpreting and writing functions
    By crazychile in forum C Programming
    Replies: 1
    Last Post: 10-23-2008, 07:51 PM
  2. interpreting xml
    By WebmasterMattD in forum C++ Programming
    Replies: 3
    Last Post: 09-07-2003, 08:20 AM
  3. Interpreting literal escape sequences from a file...
    By Sebastiani in forum C++ Programming
    Replies: 1
    Last Post: 07-08-2003, 02:00 PM
  4. interpreting time fields in a structure
    By *ClownPimp* in forum C++ Programming
    Replies: 2
    Last Post: 01-14-2003, 11:07 AM
  5. Interpreting characters from physical paper
    By Zewu in forum Tech Board
    Replies: 10
    Last Post: 12-31-2002, 02:53 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21