Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22248

gcc won't create executable file on linux terminal [Solved] [closed]

$
0
0

I am trying to create an executable file from multiple C source files on linux terminal using gcc. I managed to create the object files but the executable file won't show up. This is what I have been running in terminal:

gcc -Wall -c commandLine.c main.c commandLine.h

The above creates the object files.

gcc commandLine.o main.o -o executable

The above is supposed to create the executable file but no executable file shows up in my directory.This is what is then printed in terminal:

/usr/bin/ld: warning: cannot find entry symbol xecutable; defaulting to 0000000000001740main.o: In function `main':main.c:(.text+0x2897): undefined reference to `CreateVariable'collect2: error: ld returned 1 exit status

Viewing all articles
Browse latest Browse all 22248

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>