470,815 Members | 3,163 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,815 developers. It's quick & easy.

Migrating generic.h to GNU GCC/G++

There is no generic.h with GNU, and specifically no name2() function
for me to substitute for in my ancient (1992) source code. If anyone
can specify or steer me in the right direction I would be very grateful
as I am just about stuck. I don't know if I will run into any other
generic.h problems beyond name2() so if you can suggest a "generic" way
to work around this problem, that would be super. Thanks.

Thank you!

May 22 '06 #1
3 3609
ca**********@gmail.com schrieb:
There is no generic.h with GNU, and specifically no name2() function
for me to substitute for in my ancient (1992) source code. If anyone
can specify or steer me in the right direction I would be very grateful
as I am just about stuck. I don't know if I will run into any other
generic.h problems beyond name2() so if you can suggest a "generic" way
to work around this problem, that would be super. Thanks.

Thank you!


That's easy:

//file generic.h

void name2()
{
}
Would you mind telling us what 'generic.h' and 'name2()' are ?

/S
--
Stefan Naewe
naewe.s_AT_atlas_DOT_de
May 22 '06 #2
ca**********@gmail.com wrote:
There is no generic.h with GNU, and specifically no name2() function
for me to substitute for in my ancient (1992) source code. If anyone
can specify or steer me in the right direction I would be very
grateful as I am just about stuck. I don't know if I will run into
any other generic.h problems beyond name2() so if you can suggest a
"generic" way to work around this problem, that would be super.
Thanks.


Have you tried the GCC-dedicated newsgroup: gnu.gcc.help? Please
always try a more specific (especially WRT products) forum first.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
May 22 '06 #3
ca**********@gmail.com wrote:
There is no generic.h with GNU, and specifically no name2() function
for me to substitute for in my ancient (1992) source code. If anyone
can specify or steer me in the right direction I would be very grateful
as I am just about stuck. I don't know if I will run into any other
generic.h problems beyond name2() so if you can suggest a "generic" way
to work around this problem, that would be super. Thanks.

Thank you!


A little google searching turned up this:

The "generic.h" file used to be included with all C++ development
environments; it defined macros that were used to "glue" tokens
together to emulate the capabilities of templates. These macros had
names such as "name2", "declare", and "implement".

Convert the code to use templates perhaps??

Larry
May 22 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Zvika Glickman | last post: by
1 post views Thread by Mark | last post: by
4 posts views Thread by Bernardo Robelo | last post: by
6 posts views Thread by Shai Levi | last post: by
3 posts views Thread by BobRoyAce | last post: by
34 posts views Thread by subramanian100in | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.