Linking problem

A

ashok.ptr

Hi,
I have installed the evaluatioin version of Intel c++ compiler(9.1)
in my pc. For checking purpose i have written a simple program to
display "Hello world". It's is compiling properly but at the time of
linking it's giving the following error.
unresolved external symbol ___intel_new_proc_init referenced in
function _main.

Could u please give me the solution?


Regards,
Ashok.
 
?

=?ISO-8859-1?Q?Erik_Wikstr=F6m?=

Hi,
I have installed the evaluatioin version of Intel c++ compiler(9.1)
in my pc. For checking purpose i have written a simple program to
display "Hello world". It's is compiling properly but at the time of
linking it's giving the following error.
unresolved external symbol ___intel_new_proc_init referenced in
function _main.

Could u please give me the solution?

Looks like you have put more than you need in your Hello World, or you
are not using the compiler/linker correctly, I'd say it's the latter and
advice you to check the ICC manual.
 
A

ashok.ptr

Erik said:
Looks like you have put more than you need in your Hello World, or you
are not using the compiler/linker correctly, I'd say it's the latter and
advice you to check the ICC manual.
program i have written is..
#include <stdio.h>
int main(void)
{
printf("Hello world\n");
return 0;
}
 
?

=?ISO-8859-1?Q?Erik_Wikstr=F6m?=

program i have written is..
#include <stdio.h>
int main(void)
{
printf("Hello world\n");
return 0;
}

Then you should take you problem to a newsgroup for C, in C++ we write
it like this:

#include <iostream>

int main()
{
std::cout << "Hello World!" << std::endl;
return 0;
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top