C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Unresolved external '_main' referenced

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (French)
View previous topic :: View next topic  
Author Message
matthieu ducamp
Guest





PostPosted: Fri Aug 12, 2005 4:34 pm    Post subject: Unresolved external '_main' referenced Reply with quote



Bonjour,
J'essaye de compiler avec borland, le fichier wave.cpp qui se trouve :
http://www.lightlink.com/tjweber/StripWav/WAVE.html#Reading

Mais j'obtiens cette erreur :

Error: Unresolved external '_main' referenced from
:BORLANDBCC55LIBC0X32.OBJ

Je suis debutant et je ne sais pas trop ce que ca veut dire.
Quelqu'un peut m'aider ?

Merci
Matthieu


Back to top
Fabien LE LEZ
Guest





PostPosted: Fri Aug 12, 2005 5:10 pm    Post subject: Re: Unresolved external '_main' referenced Reply with quote



On Sat, 13 Aug 2005 01:34:29 +0900, "matthieu ducamp"
<matthieu.ducamp (AT) free (DOT) fr>:

Quote:
Error: Unresolved external '_main' referenced from

Un programme doit contenir une fonction main(), qui est le point
d'entrée du programme (i.e. cette fonction est appelée
automatiquement, et elle appelle elle-même d'autres fonctions).

Elle a deux formes possibles :

int main()

ou

int main (int, char**)


Le message signifie qu'il n'y a pas de fonction main() dans ton
programme.


Back to top
nico
Guest





PostPosted: Sat Aug 13, 2005 2:09 pm    Post subject: Re: Unresolved external '_main' referenced Reply with quote




Quote:
Elle a deux formes possibles :

int main()

ou

int main (int, char**)


ou

int main(int argc, char ** argv, char ** envp) :)

--
nico

Back to top
Fabien LE LEZ
Guest





PostPosted: Sat Aug 13, 2005 2:29 pm    Post subject: Re: Unresolved external '_main' referenced Reply with quote

On Sat, 13 Aug 2005 16:09:06 +0200, nico <nospam (AT) spam (DOT) fr>:

Quote:
ou

int main(int argc, char ** argv, char ** envp) Smile

Ceci est une extension -- hors-sujet ici.


Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (French) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.