- OS ------------------------------------>Win 7
- version of C::B and compiler -----> 13.12
- steps to reproduce ---------------->?
- full compiler log -------------------->main.c||undefined reference to `WinMain@16'|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|
- example code snippets ---------->
#include <stdio.h>
#include <string.h>
struct Books{
char title[50];
char author[50];
char subject[100];
int book_id;
};
typedef struct Books TTT;
print_book(TTT *book){
printf(" here is your value of the function of the STRUCT :%i", book->book_id);
int main( )
{
TTT *livre;
TTT MNB;
livre= &MNB;
//livre->book_id = 123;
print_book(livre);
}
printhello(TTT *boo){
printf("Enter your book # here please :");
scanf("%i",&boo->book_id);
printf("your boo book_id is : %i\n\n\n\n\n\n\n\n\n\n", boo->book_id);
}