Solved

linking error

Posted on 2004-08-01
4
176 Views
Last Modified: 2013-11-08
I'm trying to compile a fortran program in Microsoft Developer Studio.  The code compiles, but I get the following error messages when I try to "build" the project:

--------------------Configuration: TCEbiofilm - Win32 Debug--------------------
Linking...
libcd.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/TCEbiofilm.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

TCEbiofilm.exe - 2 error(s), 0 warning(s)
------------------------------------------------------------------------------------------

Any help in solving this problem will be much appreciated
0
Comment
Question by:LeeClapp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 500 total points
ID: 11689903
This occurs generally when you try to create a Win32 console application but, you define main() function instead of WinMain().
Try to generate an empty console project:

File -> New -> Project -> Win32 Console Application, and the AppWizard will generate the proper main function. Cut and paste all your code and that's all!
0
 

Author Comment

by:LeeClapp
ID: 11689925
Thanks!!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

691 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