Hi,
I have the following lines in my code:
Which gives me the following error:
What am I doing wrong here? I'm compiling this with gcc in the terminal on Snow Leopard.
I have the following lines in my code:
Code:
#include <CoreFoundation/CoreFoundation.h>
#include <CoreServices/CoreServices.h>
CFStringRef filePath;
filePath = CFStringCreateWithFileSystemRepresentation(kCFAllocatorDefault, argv[1]);
Which gives me the following error:
Code:
Undefined symbols:
"_CFStringCreateWithFileSystemRepresentation", referenced from:
_main in cconqLmH.o
"_kCFAllocatorDefault", referenced from:
_main in cconqLmH.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
What am I doing wrong here? I'm compiling this with gcc in the terminal on Snow Leopard.