Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to link .OBJ

Status
Not open for further replies.

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
 
Add the Obj as you add a cpp file. Right click on the project, choose add file and choose the obj
 
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.
 
You need to prepare a header file with prototypes of all the functions in the Obj and include this header in your c file.
 
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.
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top