Click here to Skip to main content
16,021,041 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi.
I recently wrote a program for image progressing with OpenCV libraries. Now I must add some function to it for connecting to MySQL and read a flag. Know I have some question:
1. what must I use? gcc or g++ for compile the program? (in CentOS)
2. How I can compile it? whit which flags and library?

before it, I compile OpenCV program with this command:
g++ imageproc.cpp -o imageproc `pkg-config opencv --cflags --libs

and, I compile querytoMySQL program with this command:
gcc funcname.c -o funcname `mysql_config --cflags --libs`

I tried to give libraries and flags with -L,-l,-I but it doesn't work.
Posted
Updated 30-Jun-15 20:48pm
v2
Comments
CPallini 1-Jul-15 2:54am    
You might use C++ (g++) for all the code.
I tried to give libraries and flags with -L,-l,-I but it doesn't work.
What does it mean, exactly?

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