Driver Development Kit (DDK)

cancel
Showing results for 
Search instead for 
Did you mean: 

DDK Compilation Issues

I am having some problems precompiling tSTC.h due to all of the inlining.

There is a switch (___tSTC_h_no_inline___) to keep the .ipp file from being included in the .h, but since all of the class methods are declared as inline, I still end up with problems. Short of doing a find/replace on all 6000+ occurrences of "inline", I am looking for an alternative that will speed up my compiles during development.

I notice that the files are auto-generated: is it possible to get a version of the DDK that has been produced in a non-inlined form?
------------------
scott gillespie
applied brain, inc.
------------------
0 Kudos
Message 1 of 3
(7,714 Views)
The .ipp files are really designed to be inlined where they get optimized away. To not inline them, either turn off inlining for the compiler, search and replace for "inline", or add
#define inline
to the top of the .h file.

Also gcc 2.x compiles inline code much more slowly than gcc 3.x.
0 Kudos
Message 2 of 3
(7,714 Views)
The specific problem I was having turned out to be: two different sets of compile switches were passed to precompiler/compiler (gcc 3.1), thus causing problems at link time.

However, I still have need for a non-inlined compile, and have already done roughly as you suggested.

Thanks for the tips...

spg
------------------
scott gillespie
applied brain, inc.
------------------
0 Kudos
Message 3 of 3
(7,714 Views)