Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When I compile a C code where I use OpenCV libraries, crash...
I understand that the problem is that Sublime don't know where are the libraries or includes, if somebody can explain how can indicate that to Sublime I will be so grateful.

Sublime output error:
Undefined symbols for architecture x86_64:
  "_cvCreateFileCapture", referenced from:
      _main in main-ef8d52.o
  "_cvLoadImage", referenced from:
      _main in main-ef8d52.o
  "_cvQueryFrame", referenced from:
      _main in main-ef8d52.o
  "_cvShowImage", referenced from:
      _main in main-ef8d52.o
  "_cvWaitKey", referenced from:
      _main in main-ef8d52.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[Finished in 0.5s with exit code 1]
[shell_cmd: gcc main.c -o main]
[dir: /Users/Watson/Documents/dev/Lenguajes/C/apPro1]
[path: /usr/bin:/bin:/usr/sbin:/sbin]
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900