[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] c++ example
From: |
Thomas Chust |
Subject: |
Re: [Chicken-users] c++ example |
Date: |
Wed, 1 Dec 2010 17:20:03 +0100 |
2010/12/1 David Dreisigmeyer <address@hidden>:
> [...]
> ** punCpp.h:
> [...]
> void punCpp (void);
> [...]
> ** pun_module.scm:
> [...]
> (foreign-declare "extern void punCpp (void);\n")
> [...]
Hello David,
in this case I suggest that you change the foreign-declare statement
to
(foreign-declare "#include \"punCpp.h\"\n")
If you ever add more prototypes to the header, you don't have to
duplicate the work and type them into additional foreign-declare
statements.
Ciao,
Thomas
--
When C++ is your hammer, every problem looks like your thumb.