Problem with GCC on terminal with my headers file | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Problem with GCC on terminal with my headers file

I have a program on codeblocks and it works, after this now I want to use GCC compiler on terminal so i did : gcc -c main.c gcc -c jeu.c gcc -o main.o jeu.o -o main but they say than theyre is a problem with my fonction "without reference to" <fonction>, how can I fix it pls. thanks.

25th Sep 2018, 8:23 AM
fuS vid
fuS vid - avatar
7 Answers
+ 2
tried gcc jeu.c main.c -o main ?
25th Sep 2018, 8:54 AM
KrOW
KrOW - avatar
+ 1
No output? try gcc -v -Wall jeu.c main.c -o main and tell what it output
25th Sep 2018, 9:09 AM
KrOW
KrOW - avatar
+ 1
its ok i found thanks you and have a good day
25th Sep 2018, 9:20 AM
fuS vid
fuS vid - avatar
+ 1
fuS vid Good to know but, just for curiosity... What it was the problem?
25th Sep 2018, 9:22 AM
KrOW
KrOW - avatar
+ 1
I didn't execute 😅
25th Sep 2018, 9:23 AM
fuS vid
fuS vid - avatar
+ 1
😂😂😂
25th Sep 2018, 9:48 AM
KrOW
KrOW - avatar
0
nothing happen
25th Sep 2018, 8:57 AM
fuS vid
fuS vid - avatar