Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error linking file

Status
Not open for further replies.

5888

Programmer
Apr 27, 2003
16
MY
Hello there. I am having problem to link a file after compilation. I am using VC++ 6.0 to compile and link a file, but it gave me an error message "response line too long". What's going no to my VC++ 6.0? Even just a simple program like:

#include <stdio.h>

main()
{
printf(&quot;Hello\n&quot;);
return 0;
}

also cannot be linked. Please help, thank you.
 
I thought the default return type for main() is int. Besides, I tried to put int in front but still the same error. [sad]
 
Are there any other files in the workspace? Did you create a project/workspace for this code?

The code isn't the problem. It compiled fine for me.
 
BoulderBum,

There is no other files in the workspace except CPP. Actually i can compile this code at home but not in the college. Some of the VC++ in the lab is working properly whereas some will generate this error. This is very strange even I asked the lab. assistant to help me and end up i have to shift to other PC. They are not able to solve this problem too. [cry]
 
I recommend creating a Win32 console application (with the AppWizard) on two different computers (one you had problems with, and one that works fine). Then compare the command-lines of each project. If there are any differences (which there shouldn't be) then I suggest looking into what that particular switch does.

[sub]I REALLY hope that helps.[/sub]
Will
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top