I am compiling a C program and then trying to link it with the command:
gcc -g url.cc url.o -lm -L/usr/lib/mysql -lmysqlclient
Once I enter the above command, I get an error that looks like
url.o(.text+0x0): multiple definition of `PrintHTMLHeader(void)'
where url.o is my object file ... and PrintHTMLHeader is some function ...
I am getting this error for every function that I have defined ...
Could you tell me what is wrong?
Ekta
gcc -g url.cc url.o -lm -L/usr/lib/mysql -lmysqlclient
Once I enter the above command, I get an error that looks like
url.o(.text+0x0): multiple definition of `PrintHTMLHeader(void)'
where url.o is my object file ... and PrintHTMLHeader is some function ...
I am getting this error for every function that I have defined ...
Could you tell me what is wrong?
Ekta