Home > Back-end >  C write a question static libraries
C write a question static libraries

Time:12-04

Alone in the lib engineering added a date/time class. H and. CPP in, and then in the main file contains the. H and then compiled lib to the console test can't find anything in this date/time, is where I didn't manage to get? Don't include the header file directly?

CodePudding user response:

refer to the original poster wuzhifei response:
in the lib engineering added a date/time class alone. H and. CPP in, and then in the main file contains the. H and then compiled lib to the console test can not find anything in this date/time, is where I didn't manage to get? Don't include the header file directly?
,
No problem on the operation, the code might be the problem, it is better to attach code to know,

CodePudding user response:

. Lib is contained to the test project

CodePudding user response:

I think you are not this class is derived

CodePudding user response:

There should be no right click on the project, click the "add an existing file
  • Related