Xcode with Linkers and libraries

Discussion in 'Mac Programming' started by warcormc, Nov 8, 2006.

  1. warcormc macrumors newbie

    Nov 8, 2006
    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!
  2. kpua macrumors 6502

    Jul 25, 2006
    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.

Share This Page