Compile progam problems

chuckluck wrote on Thursday, March 05, 2009:

Hello…if anyone might be able to help with some feedback it would be appreciated on this problem I am having compiling a program I have.

I’m writing it in c and when I use:

  gcc 'pkg-config  --cflags libglfw' -o myprog myprog.c  'pkg-config --libs libgflw'

I get the following error messages:

 gcc: pkg-config --cflags libglfw: No such file or directory

  gcc: pkg-config --libs libglfw: No such file or directory

I’m using Zenwalk(slackware derivative)…I used make x11-install for GLFW

I also have #include <GL/glfw.h> in my header file.

I can’t seem to find anything I may have left out or misunderstood in the readme file of getting GLFW installed to be able to use on my system.

Any help is appreciated…thank you

dalfy wrote on Thursday, March 05, 2009:

I think you have a problem of syntax are you sure you are using `(backquote) around the pkg-config command. It looks to me that you are using ’ (quote) instead. In one case (quote) it will try to generate a string to pass to as one argument in the other case it will replace the command by its output.

Also you can test that the installation of GLFW is successful using pkg-config --modversion libglfw. If there is no issue reported then you are using the wrong quote.

I hope it helps
Olivier

chuckluck wrote on Thursday, March 05, 2009:

Thank you very much Olivier…yes indeed it was my syntax error…when I changed to using the backquote instead of quote the program compiled just fine…thanks again for pointing that out. hmmm…LOL…I probably have a few projects on hold because I didn’t notice the difference between backquote and quote.