First off, I'm not a developer. Now that I got that out of the way, below is my issue.
So I have a small C program that list directory contents. If I run that from the CMD, it works fine and does what it supposed to do.
Volume in drive C has no label.
Volume Serial Number is E4A9-F680
Directory of ...
12/29/2019 12:13 PM <DIR> .
12/29/2019 12:13 PM <DIR> ..
12/29/2019 12:10 PM 38,912 ListDirectoryExe.exe
9 File(s) 1,465,670 bytes
3 Dir(s) 385,429,344,256 bytes free
Here's my code calling ListDirectoryExe:
When I run Build, it fails on the following:
In function `_main':
(.text+0x6): undefined reference to `_system'
Am I using system() correctly or am I missing to declare or define something? Any help is appreciated.