2010/12/1 David Dreisigmeyer :
> [...]
> ** 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 "#inc
This does work now. Thank you for all the help! I've included a
summary of everything below.
** punCpp.h:
void punCpp (void);
** punCpp.cpp:
#include
#include "punCpp.h"
using namespace std;
void punCpp (void)
{
printf("Hello World!\n");
return;
}
** pun_module.scm:
(module pun_modul
Thanks Thomas and Peter. I created a punCpp.h but forgot to include
it on the email. Let me try this on my end again.
On Wed, Dec 1, 2010 at 9:30 AM, Peter Bex wrote:
> On Wed, Dec 01, 2010 at 08:23:40AM -0500, David Dreisigmeyer wrote:
>> This may be getting closer. Here's my code again (the
On Wed, Dec 01, 2010 at 08:23:40AM -0500, David Dreisigmeyer wrote:
> This may be getting closer. Here's my code again (the names are
> slightly different from above):
Here it complains about punCpp.h not being available.
Simply making a file punCpp.h containing one line:
void punCpp(void);
ca
2010/12/1 David Dreisigmeyer :
> This may be getting closer. Here's my code again (the names are
> slightly different from above):
Hello David,
some more remarks about the example:
> [...]
> #include
> #include "punCpp.h"
> [...]
None of the iostream functionality is ever used in the example
This may be getting closer. Here's my code again (the names are
slightly different from above):
**punCpp.cpp:
#include
#include "punCpp.h"
using namespace std;
void punCpp (void)
{
printf("Hello World!\n");
return;
}
**pun_module.scm:
(module pun_module (test_pun)
(import chicke
2010/12/1 Alan Post :
> On Tue, Nov 30, 2010 at 11:18:49AM -0500, David Dreisigmeyer wrote:
>> [...]
>> When I try this:
>>
>> *pun_cpp.cpp:
>>
>> #include
>> using namespace std;
>>
>> void pun_cpp (void)
>> {
>> printf("Hello World!");
>> return;
>> }
>>
>> *pun_module.scm:
>>
>> (module pun
Hi,
I was hoping to get some help with the c++ "hello world" example
below. I apologize for the question -- I'm currently learning both
Chicken and C/C++ at the same time. So far Chicken seems much easier
than the other Lisps I've tried. Thanks for the effort and great
documentation on this imp
On Tue, Nov 30, 2010 at 11:18:49AM -0500, David Dreisigmeyer wrote:
> Hi,
>
> I was hoping to get some help with the c++ "hello world" example
> below. I apologize for the question -- I'm currently learning both
> Chicken and C/C++ at the same time. So far Chicken seems much easier
> than the ot