c - eclipse debug not work -
i use eclipse run c language program
after build project,it print
building target: testusb invoking: cross gcc linker gcc -l/opt/local/lib -lusb-1.0 -o "testusb" ./src/testusb.o finished building target: testusb
14:44:40 build finished (took 120ms)
14:44:49 **** incremental build of configuration debug project testusb **** make make: nothing done `all'.
14:44:49 build finished (took 68ms)
14:45:10 **** incremental build of configuration debug project testusb **** make make: nothing done `all'.
14:45:10 build finished (took 65ms)
in terminal when cd directory , type testusb,it print success.
but when debug use eclipse,it not print success , cannot step main breakpoint.
#include <stdio.h> #include <stdlib.h> #include <libusb-1.0/libusb.h> int main(void) { libusb_context **libcontext; libusb_device ***devicelist; int status = libusb_init(libcontext); if (status == 0) { // libusb_get_device_list(*libcontext,devicelist); printf("success"); }
}
my question why debug cannot step breakpoint , cannot print success?
i found reason eclipse default support gdb,but mac ggdb.i try solution eclipse cdt cannot debug using gdb on mac apple-gcc42 not supported on os x versions newer el capitan,my mac macos sierra
reference linking libraries in xcode
Comments
Post a Comment