Migrating generic.h to GNU GCC/G++

C

carlsagan.13

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!
 
?

=?ISO-8859-1?Q?Stefan_N=E4we?=

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
 
V

Victor Bazarov

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
 
L

Larry I Smith

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top