haifeng zhang | 2 Jan 2001 18:06
Picon
Favicon

swig on Windows

Sir,

I have installed swig on Windows 98. But When I tried simple,  I combined 
example.c and example_wrap.c, compiled it. output is examplemodule.so. but 
it does not work,

something I did wrong?

I used VC++ compiler.

cheer for you help

Thank you very much.

Craig
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

noreply | 5 Jan 2001 17:01
Picon
Favicon

[Bug #127675] 1.3a5 error message wrong when missing second % with %inline

Bug #127675, was updated on 2001-Jan-05 08:01
Here is a current snapshot of the bug.

Project: SWIG
Category: parsing
Status: Open
Resolution: None
Bug Group: None
Priority: 5
Submitted by: ber
Assigned to : nobody
Summary: 1.3a5 error message wrong when missing second % with %inline

Details: An error made quite often seems to be to forget about the second
"%" when using inline. It tickled an interesting parsing bug:
Check the following input file:

---swig_bug.i
// Bug in SWIG Version 1.3u-20001214-2315 (Alpha 5)
%module doesnotmatter
%inline %{
%}

%inline {

struct x
{
    char x;
};

(Continue reading)

Dr. Klaus Wiederänders | 10 Jan 2001 17:38
Picon

bug under linux


Hi,

with the todays cvs version of swig I get an error message:

main.cxx:157: passing 'const char *' as argument 1 of 'Preprocessor_define(void *, int)' discards qualifiers.

A cast will fix the problem.

Have fun,
Klaus

Dr. Klaus Wiederänders | 10 Jan 2001 17:38
Picon

Re: missing virtual indicator

Hi,

for some reason I need to know whether or not a function is virtual. I work with the latest
version from the cvs repository. How can I do such a thing?

Have fun,
Klaus

David Beazley | 10 Jan 2001 17:56
Favicon

Re: missing virtual indicator

Dr. Klaus Wiederänders writes:
 > Hi,
 > 
 > for some reason I need to know whether or not a function is virtual. I work with the latest
 > version from the cvs repository. How can I do such a thing?
 > 

All of this information has been turned into object attributes.  I think it
can be obtained from the 'storage' attribute:

    Getattr(obj,"storage")

This value is either 'static', 'extern', or 'virtual'.  (You might
want to double check the attribute name however).

Cheers,

Dave

Bill Davis | 10 Jan 2001 18:31
Picon

SWIG compilation errors

Hi,

    First, I'd like to apologize for any inane-sounding questions.  I
consider myself to a be a good programmer, but fully realize that I pale
in comparison to the level at which you all operate!  :-)

I'm trying to compile SWIG 1.3a5 on HP-UX 10.20.  I have received the
following error while using the B.10.20.11 ANSI C compiler:

        cc -g -I./. -I./../DOH/Include -I./../Include -c -o map.o map.c
cc: "../DOH/Include/doh.h", line 56: warning 5: "const" will become a
keyword.
cc: "../DOH/Include/doh.h", line 56: error 1000: Unexpected symbol:
"DOH".
cc: "../DOH/Include/doh.h", line 57: error 1000: Unexpected symbol: "*".

cc: "../DOH/Include/doh.h", line 61: error 1000: Unexpected symbol: "*".

cc: "../DOH/Include/doh.h", line 62: warning 5: "const" will become a
keyword.
cc: "../DOH/Include/doh.h", line 62: error 1000: Unexpected symbol: "*".

cc: "../DOH/Include/doh.h", line 62: error 1000: Unexpected symbol:
"DOH".
cc: "../DOH/Include/doh.h", line 62: error 1000: Unexpected symbol: ";".

cc: "../DOH/Include/doh.h", line 63: error 1000: Unexpected symbol: ";".

cc: "../DOH/Include/doh.h", line 64: warning 5: "const" will become a
keyword.
(Continue reading)

David Beazley | 10 Jan 2001 18:36
Favicon

SWIG compilation errors

Bill Davis writes:
 > Hi,
 > 
 >     First, I'd like to apologize for any inane-sounding questions.  I
 > consider myself to a be a good programmer, but fully realize that I pale
 > in comparison to the level at which you all operate!  :-)
 > 
 > I'm trying to compile SWIG 1.3a5 on HP-UX 10.20.  I have received the
 > following error while using the B.10.20.11 ANSI C compiler:
 > 
 >         cc -g -I./. -I./../DOH/Include -I./../Include -c -o map.o map.c
 > cc: "../DOH/Include/doh.h", line 56: warning 5: "const" will become a
 > keyword.

Does this problem go away if you give the compiler some kind of flag
indicating POSIX or ANSI C?  It's been a long time since I used an
HP, but I seem to remember that defining _POSIX_SOURCE or some other
strange thing like that made most problems go away.

Cheers,

Dave

Thien-Thi Nguyen | 10 Jan 2001 19:02

[Swig-CVS] commit 'SWIG/Source/Modules1.1 main.cxx'

Wed Jan 10 12:02:23 CST 2001
Files: %{sVv}
Update of /cvsroot/SWIG/Source/Modules1.1
In directory schlitz:/tmp/cvs-serv17209

Modified Files:
	main.cxx 
Log Message:
(swig11_init): Cast first arg of `Preprocessor_define()'.

thi | 10 Jan 2001 19:03

Re: bug under linux

"Dr. Klaus =?iso-8859-1?Q?Wieder=E4nders?=" <kwconsulting <at> compuserve.com> writes:

> A cast will fix the problem.

fixed in cvs.  thanks for the bug report.

thi

thi | 10 Jan 2001 19:16

Re: SWIG compilation errors

"Bill Davis" <davisw <at> beast.amd.com> writes:

> I'm trying to compile SWIG 1.3a5 on HP-UX 10.20.  I have received the
> following error while using the B.10.20.11 ANSI C compiler:

hmmm, i wonder if any swig developers have access to an HP-UX 10.20
machine to test portability, etc.

these problems might be fixed in the cvs version of swig, since 1.3a5
was released 2000-09-22, and one of the files in question has a change
log entry "Bug fixes" since then (but there might be other newer bugs --
the "a" in 1.3aX means "alpha").

generally, i suggest trying the cvs version, but in your case, it might
be better to track down the memory leak using the same version of swig
the original programmer used.  the 1.3 series swig is significantly (and
incompatibly) different.

thi


Gmane