Communauté Informatique NDFR.net : undefined reference to 'WinMain@16' - Programmation (C/C++, Delphi, VB, etc.)
Reply
undefined reference to 'WinMain@16'
Thread Tools Display Modes
  #1  
Old 25-01-2017, 21:50
Bleomoon Bleomoon is offline
Membre junior
 
Join Date: 25-01-2017
Posts: 1
undefined reference to 'WinMain@16'

Bonjour, alors voila, j'ai commencer à apprendre a programmer en C mais j'ai un problème te j'ai eu beau chercher partout et tout essayer je n'y arrive pas.
Lorsque je lance mon programme, il m'affiche deux erreurs:
1- undefined reference to 'WinMain@16'
et 2 - error: ld returned 1 exit status

Mon programme:

#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int plusOUmoins(int argc, char *argv[])
{
int NbAlea, NbUser;
char Rejoue;
const MAX = 100, MIN = 1;

/* Initialise le nombre aléatoires */
srand(time(NULL));

Rejoue = "Non";
do
{
NbAlea = (rand() % (MAX- MIN + 1) + MIN);
do
{
printf("Quel est le nombre mystère\n");
scanf("%d", & NbUser);
if (NbUser > NbAlea)
{
printf("c'est moins\n");
}
else if (NbUser < NbAlea)
{
printf("c'est plus\n");
}
}while(NbUser != NbAlea);

printf("Voulez vous rejouez? Oui ou Non\n");
scanf(" %d", &Rejoue);
}while(Rejoue != "Oui");

}

Aidez moi ça fait 2 jours que je cherche
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 05:32.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.