Mail Archives: djgpp/1999/03/02/23:51:18
Paganini wrote:
> Paganini <Nathan E. Banks> <paganini AT madisontelco DOT com> wrote
>
> <snip>
>
> I've got to stop replying to myself like this... :)
>
> Hehe...silly me...I forgot that windows likes to put filename extensions in
> uppercase...that was the problem.
>
> However, I do have a question about separate compilation. Under TC++ 4.5,
> you put the definition of a class in a header file (classsname.h) by
> itself...then you put the code for the functions in a source (classname.cpp)
> file. To actually use the class in your program, you #include the header in
> the program code file (main.cpp) and in the source file (classname.cpp) for
> the class. You create a project that includes the source files for the class
> and the program...then you compile and link them.
>
> I tried this in DJGPP, but I get errors that say the functions are
> undefined. Is there a way to implement this kind of separate compilation
> with DJGPP?
I think there are some limitations with DJGPP and template compiling.
[AFAIK] you can precompile template stuff in DJGPP. You may need to include the
"cpp" in your program.
--
(\/) Endlisnis (\/)
s257m AT unb DOT ca
Endlisnis AT GeoCities DOT com
Endlisnis AT BrunNet DOT Net
Endlisnis AT HotMail DOT com
- Raw text -