Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

warcormc

macrumors newbie
Original poster
Nov 8, 2006
1
0
So i had a quick question, I'm probably just overlooking something, but I'll ask anyways. I'm trying to compile a networking app i wrote in c. I had been using just pico and gcc. Now i moved the source to Xcode and am having a heck of a time trying to figure out where the compile options are. I need to use a pcap library. In gcc i would just compile with -lpcap. How do i do this in Xcode? I've set the include and lib paths but with no success. Thanks in advance!
 
In addition to setting the include and lib paths, you still need to pass the -lpcap flag to the compiler. You can add this to the Other Linker Flags setting in the same place you set the paths.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.