Reputation: 51
I use command to compile:
gcc -o hello hello.c -I/usr/local/include -I/usr/local/include/sphinxbase -I/usr/local/include/pocketsphinx -L/usr/local/lib -lpocketsphinx -lsphinxbase
I want compile use only gcc -o hello hello.c
Can I put this path in code?
Upvotes: 0
Views: 51
Reputation: 11889
Some versions of gcc support 'response files', whereby you can put most of those options into a text file, and reference it from the command line:
response.txt
-I/usr/local/include
-I/usr/local/include/sphinxbase
-I/usr/local/include/pocketsphinx
-L/usr/local/lib
-lpocketsphinx
-lsphinxbase
gcc -o hello hello.c @response.txt
But really, I agree with @chris_turner, use a make
file.
Upvotes: 1