Horde3D
http://horde3d.org/forums/

Source in header files
http://horde3d.org/forums/viewtopic.php?f=1&t=357
Page 1 of 1

Author:  roarflolo [ 04.06.2008, 02:00 ]
Post subject:  Source in header files

Why is there so much source-code in header files (Collada converter at least)? With this I can't do a quick compile of my changes using Ctrl-F7 (VisualStudio), far more of the source-tree is compiled when I make changes and sometimes VisualStudio is confused with break-points in these classes.

How about moving the code into .cpp files?

Author:  swiftcoder [ 04.06.2008, 02:48 ]
Post subject:  Re: Source in header files

The whole collada converter is what, 7 files all told (if you ignore the dae lib, which is basically an external dependency). If you need faster compile times, maybe try putting the dae lib into a separate static library.

For a tool as small as the converter, compile times shouldn't be an issue - maybe your computer needs a tune up? A full compile (from scratch) of the collada converter takes less than 5 seconds on my 3 year-old Mac. (Edit: that may not be representative - Apple's GCC may perform better than MSVC, I don't know)

Author:  roarflolo [ 04.06.2008, 02:58 ]
Post subject:  Re: Source in header files

Eh, OK... I'm off to Best Buy ;)

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/