Computing.Net > Forums > Programming > a problem

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

a problem

Reply to Message Icon

Name: albertwinner
Date: September 12, 2003 at 04:37:01 Pacific
OS: windows xp
CPU/Ram: barton 2500+
Comment:

Once I programmed a program with turbo c.
Every thing is o.k. But today I programmed it
with turbo c++,I failed to compile and link.
it say"Linker Warning: No module definition file specified:using defaults" "Linker Error:
Undefined symbol_main in module WINMAIN"
I don't know what error I had made. Can every one here help me?




Sponsored Link
Ads by Google

Response Number 1
Name: Mohamed
Date: September 12, 2003 at 05:25:31 Pacific
Reply:

can you post the code so that we can figure out the problem???


0

Response Number 2
Name: albertwinner
Date: September 12, 2003 at 09:08:42 Pacific
Reply:

the following is my code

#include
#include
#define NULL 0
#define LEN sizeof(struct student)
struct student
{long num;
float score;
struct student *next;
};
int n;
struct student *creat(void)
{struct student *head;
struct student *p1,*p2;
n=0;
p1=p2=(struct student *) malloc(LEN);
scanf("%1d,%f",&p1->num,&p1->score);
head=NULL;
while(p1->num!=0)
{n=n+1;
if(n==1)head=p1;
else p2->next=p1;
p2=p1;
p1=(struct student *) malloc(LEN);
scanf("%1d,%f",&p1->num,&p1->score);
}
p2->next=NULL;
return(head);
}


0

Response Number 3
Name: Don Arnett
Date: September 12, 2003 at 09:23:07 Pacific
Reply:

I don't see a 'main()' in your code.

That jibes with the error message.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: a problem

I have a problem with Visual C#... www.computing.net/answers/programming/i-have-a-problem-with-visual-c/11139.html

a C problem www.computing.net/answers/programming/a-c-problem/13208.html

A problem with batch renaming www.computing.net/answers/programming/a-problem-with-batch-renaming/14963.html