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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

adding lib files to project

Status
Not open for further replies.

thefatmonkey

Programmer
Mar 14, 2002
2
0
0
GB
Hi. I can't add lib files to my project. If I use the add files menu option, the USELIB command appears in my program along with an error :
[C++ Error] Project2.cpp(11): E2293 ) expected.
can anyone help?
 
Greetinx!

Please, show part of code after adding lib file to project.
Happy programming!))
 
Here we go :
#pragma comment (lib,"d3d8.lib") adds the directx library (after adding the path in the library section)

Now my directx commands work properly:

LPDIRECT3D8 g_pD3D = NULL;
LPDIRECT3DDEVICE8 g_pd3dDevice = NULL;

Hooray!
 
How can I add libraries (xxx.lib files) in BCC32 (free Compiler)???
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top