Jun 13, 2003 #1 EvilCabal Programmer Jul 11, 2002 206 CA Hello, Im using VC++ 6.0 and I can't find how to link .OBJ to my projects. Thanx for the help
Jun 14, 2003 #2 Korach Programmer Jun 2, 2003 303 IL Add the Obj as you add a cpp file. Right click on the project, choose add file and choose the obj Upvote 0 Downvote
Jun 14, 2003 Thread starter #3 EvilCabal Programmer Jul 11, 2002 206 CA I had tried this and it did not work... The obj file is added to the project but the linker won't see the functions in it. Do the functions located in the obj need a particular declaration? Thank you for the help. Upvote 0 Downvote
I had tried this and it did not work... The obj file is added to the project but the linker won't see the functions in it. Do the functions located in the obj need a particular declaration? Thank you for the help.
Jun 14, 2003 #4 Korach Programmer Jun 2, 2003 303 IL You need to prepare a header file with prototypes of all the functions in the Obj and include this header in your c file. Upvote 0 Downvote
You need to prepare a header file with prototypes of all the functions in the Obj and include this header in your c file.
Jun 15, 2003 Thread starter #5 EvilCabal Programmer Jul 11, 2002 206 CA It still doesn't work. I always get this error: error C2065: 'Function_Name' : undeclared identifier. Is the declaration syntax the same than with usuals functions? Thanx. Upvote 0 Downvote
It still doesn't work. I always get this error: error C2065: 'Function_Name' : undeclared identifier. Is the declaration syntax the same than with usuals functions? Thanx.
Jun 15, 2003 Thread starter #6 EvilCabal Programmer Jul 11, 2002 206 CA Ok it worked, I don't know what was wrong but I closed the project and reopened it and everything is fine. Thank you for the help. Upvote 0 Downvote
Ok it worked, I don't know what was wrong but I closed the project and reopened it and everything is fine. Thank you for the help.