954,499 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Wt? "compiling and linking errors"

I am trying to do a simple program, rather 3 simple programs that involve
class structures in Visual Studio C++ .net 2003. I can compile them by
themselves without errors. But when I F5 through them I get the
following errors:
'test-proj.exe': Loaded 'C:\Documents and Settings\loki\My Documents\work\prog2\test-proj\Debug\test-proj.exe', Symbols loaded.
'test-proj.exe': Loaded 'C:\WINDOWS\SYSTEM32\ntdll.dll', No symbols loaded.
'test-proj.exe': Loaded 'C:\WINDOWS\SYSTEM32\kernel32.dll', No symbols loaded.
The program '[1356] test-proj.exe: Native' has exited with code 0 (0x0).

See attached for code:

Attachments Acctcode.doc (20KB)
loki73
Newbie Poster
3 posts since Feb 2005
Reputation Points: 10
Solved Threads: 0
 

I have a feeling you set up the project in VS to create a .dll. Make sure you have it set to create a 'console program'.

winbatch
Posting Pro in Training
466 posts since Feb 2005
Reputation Points: 68
Solved Threads: 18
 
I have a feeling you set up the project in VS to create a .dll. Make sure you have it set to create a 'console program'.


I used the Win32console application. Is this incorrect or is there a setting
that I need to change. Sorry I am a noob at visual studio.

loki73
Newbie Poster
3 posts since Feb 2005
Reputation Points: 10
Solved Threads: 0
 

I am having the same problem also. I am a noob just trying to start, and im just trying to pring something on screen with a win32console and c++ souce file. I get teh same exact error message down to the character. ntdll.dll and kernel32.dll, no symbols loaded. Please if anyone knows anything?

dank628
Newbie Poster
2 posts since Jun 2005
Reputation Points: 10
Solved Threads: 0
 

I think i figured out the no symbols thing. I read somewhere that you go to microsoft.com and search for debug symbols and download that. Then you install it and they automatically go there, I did this and it now says symbols loaded for both of them. But the bottum still says -
-The program '[932] trst.exe: Native' has exited with code 0 (0x0).

I don't know what this means or why it wont run.

#include<iostream>
#include<iomanip>
using namespace std;

void main()
{
	cout<<"Hey:"<<endl;
}


<< moderator edit: added code tags : [code][/code] >>

this is my code, i just want to output something so i can start programming from there.

dank628
Newbie Poster
2 posts since Jun 2005
Reputation Points: 10
Solved Threads: 0
 
-The program '[932] trst.exe: Native' has exited with code 0 (0x0).

It did run. It ran successfully. Then it exited. http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1043803465&id=1043284385

Dave Sinkula
long time no c
Team Colleague
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You