Link to home
Start Free TrialLog in
Avatar of bod_1
bod_1

asked on

Seperate implementation/header files

Hi,
I'm using g++ and can't find the right flags/procedure to compile/use a class I wrote with seperate header and implementation files.
Avatar of sosedada
sosedada

Is this a template class?
ASKER CERTIFIED SOLUTION
Avatar of nbell
nbell

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
As an addendum to my answer, if you decide to use a make file they must follow a strict format which includes tabs which did not show up in my copy/paste.
The above makefile is very limited.  It doesn't handle include files in different directories, libraries, templates, or any compiler options.
Avatar of bod_1

ASKER

Ah, that's perfect.
Thanks nbell.
sosedada, no, it's just a regular class.  Before I asked the question I waded through a few of the previous ones and it saw something about template classes being some sort of a special exception but nope, just a plain old class.
Thanks guys.