Re: Problem with swig tutorial on recent version of cygwin
Brad Bell <[email protected]> Fri, 19 Mar 2021 07:19:38 -0700
| Newsgroups | gmane.comp.programming.swig |
|---|---|
| Message-ID | <[email protected]> |
The name of the example C++ file was missing in my previous post; i.e,
my_example.cpp:
---------------
On 3/19/21 7:02 AM, Brad Bell wrote:
... snip ...
> /* File : my_example.c */
>
> # include <ctime>
> double My_variable = 3.0;
>
> int fact(int n) {
> if (n <= 1) return 1;
> else return n*fact(n-1);
> }
>
> int my_mod(int x, int y) {
> return (x%y);
> }
>
> char *get_time()
> {
> time_t ltime;
> time(<ime);
> return ctime(<ime);
> }
>
... snip ...
_______________________________________________
Swig-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/swig-user