I’m fairly new to c++ and compiling, however I have done this in the past and didn’t get this problem before. I had someone program something for me and left instructions on how to compile it should I need to make any changes. I first “cd” to the folder that contains all the files, then I run the command he gave me:
g++ -o filename main.cpp another.cpp aanother.cpp -L/usr/lib `mysql_config --cflags --libs` -lid3 -lcurl -lpthread
I do get a few errors, but if I remember correctly those same errors have always been there and never impacted the compilation. For some reason, “filename” is not showing in that folder at all. Am I mistaken in that the new program should be found in the same folder I “cd”ed into? What could be the problem? Why is “filename” not being created?
I don’t know if this will help anyone, but here are the errors which I’m pretty sure didn’t cause problems in the past:
[root@host.domain.net] folder >> g++ -o filename main.cpp another.cpp aanother.cpp -L/usr/lib `mysql_config --cflags --libs` -lid3 -lcurl -lpthread
main.cpp:13:21: error: id3/tag.h: No such file or directory
main.cpp:14:30: error: id3/misc_support.h: No such file or directory
main.cpp: In function âvoid readConfig()â:
main.cpp:679: error: variable âstd::ifstream myfileâ has initializer but incomplete type
main.cpp:682: error: âwsâ was not declared in this scope
I appreciate the help.
Q: You need to install an ID3 development package (which includes all needed headers).
On my Centos system, I can check for an ID3 package like this:
One should be able to install it with a command like this:
If you have an Ubuntu/Debian system, you can use “apt-get install”, or your favorite package manager GUI, instead.
EDIT
I just tried the following on Centos 5.5:
It didn’t work:
So I guess the RPM is no longer supported (at least for Centos): you need to download the package directly:
http://sourceforge.net/projects/id3lib/
http://www.id3lib.org/