[Gambas-user] RE: Why I meet "illegal instruction" ?

Swee Kwang Tan sktan007 at ...43...
Mon Aug 10 01:53:20 CEST 2009


My Dear,
If you add this line

fd = new flowdata
then you still get a "illegal instruction".

The main program become below, and the file of FlowData and ShiXing unchange.
PUBLIC SUB Main()
          DIM fd AS FlowData
          DIM at AS ShiXing
          fd = NEW FlowData      'add this line
          at = NEW ShiXing(fd)
    
END
Thank You


--- 09/8/9 (日),gambas-user-request at lists.sourceforge.net <gambas-user-request at lists.sourceforge.net> 寫道:

寄件者: gambas-user-request at lists.sourceforge.net <gambas-user-request at lists.sourceforge.net>
主旨: Gambas-user Digest, Vol 39, Issue 26
收件者: gambas-user at lists.sourceforge.net
日期: 2009年8月9日,日,下午4:34

Send Gambas-user mailing list submissions to
    gambas-user at lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
    https://lists.sourceforge.net/lists/listinfo/gambas-user
or, via email, send a message with subject or body 'help' to
    gambas-user-request at lists.sourceforge.net

You can reach the person managing the list at
    gambas-user-owner at lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Gambas-user digest..."


Today's Topics:

   1. Re: glut (abdurrahman ulusoy)
   2. Re: How to make a movie-type screen dump (Charlie Reinl)
   3. Re: Problem updating svn from revision 2209 (Ga?l Le Hec'H)
   4. Re: RE? Gambas-user Digest, Vol 39, Issue 22 (Doriano Blengino)
   5. Re: Problem updating svn from revision 2209 (Beno?t Minisini)
   6. Re: Errors compiling Gambas (Leonardo Miliani)


----------------------------------------------------------------------

Message: 1
Date: Sun, 9 Aug 2009 04:28:53 -0700 (PDT)
From: abdurrahman ulusoy <ulusoyab at ...43...>
Subject: Re: [Gambas-user] glut
To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Message-ID: <217550.39036.qm at ...2246...>
Content-Type: text/plain; charset=utf-8


ok. thanks.
--- 09/08/09 Pzr tarihinde Fabien Bodard <gambas.fr at ...626...> ??yle yaz?yor:

Kimden: Fabien Bodard <gambas.fr at ...626...>
Konu: Re: [Gambas-user] glut
Kime: "mailing list for gambas users" <gambas-user at lists.sourceforge.net>
Tarihi: 9 A?ustos 2009 Pazar, 14:18

try to join lordheavy for that, he is the maintainer of the ogl part


lordheavym at ...626...

2009/8/9 abdurrahman ulusoy <ulusoyab at ...43...>:
> i saw few example, object selection in glarea? with glut and glut has some ready objects
> ( cylinder, box, teapot, etc...) .
>
> ? if ther are? object selection (with mouse) example? in opengl in gambas this is enough for me. i dont use ready drawings.
>
> --- 09/08/09 Pzr tarihinde Fabien Bodard <gambas.fr at ...626...> ??yle yaz?yor:
>
> Kimden: Fabien Bodard <gambas.fr at ...626...>
> Konu: Re: [Gambas-user] glut
> Kime: "mailing list for gambas users" <gambas-user at lists.sourceforge.net>
> Tarihi: 9 A?ustos 2009 Pazar, 13:59
>
> yes it's true ... so what did you need ? qt.opengl ?
>
>
>
>
> 2009/8/9 abdurrahman ulusoy <ulusoyab at ...43...>:
>> when i import gb.sdl
>> error
>> "These components are incompatible:
>> gb.qt,gbsdl"
>>
>>
>>
>> --- 09/08/09 Pzr tarihinde Fabien Bodard <gambas.fr at ...626...> ??yle yaz?yor:
>>
>> Kimden: Fabien Bodard <gambas.fr at ...626...>
>> Konu: Re: [Gambas-user] glut
>> Kime: "mailing list for gambas users" <gambas-user at lists.sourceforge.net>
>> Tarihi: 9 A?ustos 2009 Pazar, 12:04
>>
>> no but you can use gb.sdl for the same thing
>>
>> 2009/8/9 abdurrahman ulusoy <ulusoyab at ...43...>:
>>> hi
>>> i think there arent glut library in gambas. do you think import it.
>>>
>>>
>>>
>>>
>>> ? ? ?___________________________________________________________________
>>> Yahoo! T?rkiye a??ld?! ?http://yahoo.com.tr
>>> ?nternet ?zerindeki en iyi i?eri?i Yahoo! T?rkiye sizlere sunuyor!
>>> ------------------------------------------------------------------------------
>>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>>> trial. Simplify your report design, integration and deployment - and focus on
>>> what you do best, core application coding. Discover what's new with
>>> Crystal Reports now. ?http://p.sf.net/sfu/bobj-july
>>> _______________________________________________
>>> Gambas-user mailing list
>>> Gambas-user at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>> trial. Simplify your report design, integration and deployment - and focus on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.? http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>>
>>
>> ? ? ?___________________________________________________________________
>> Yahoo! T?rkiye a??ld?! ?http://yahoo.com.tr
>> ?nternet ?zerindeki en iyi i?eri?i Yahoo! T?rkiye sizlere sunuyor!
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
>> trial. Simplify your report design, integration and deployment - and focus on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now. ?http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.? http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>
> ? ? ?___________________________________________________________________
> Yahoo! T?rkiye a??ld?! ?http://yahoo.com.tr
> ?nternet ?zerindeki en iyi i?eri?i Yahoo! T?rkiye sizlere sunuyor!
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now. ?http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.? http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user



      ___________________________________________________________________
Yahoo! T?rkiye a??ld?!  http://yahoo.com.tr
?nternet ?zerindeki en iyi i?eri?i Yahoo! T?rkiye sizlere sunuyor!

------------------------------

Message: 2
Date: Sun, 09 Aug 2009 13:36:59 +0200
From: Charlie Reinl <Karl.Reinl at ...9...>
Subject: Re: [Gambas-user] How to make a movie-type screen dump
To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Message-ID: <1249817819.7232.3.camel at ...40...>
Content-Type: text/plain

Am Sonntag, den 09.08.2009, 12:22 +0200 schrieb Fabien Bodard:
> http://en.wikipedia.org/wiki/Recordmydesktop
> 
> 2009/8/9 richard terry <rterry at ...1946...>:
> > I wondered if anyone knew how to do a screen capture of ones actions whilst
> > using a program for demonstration purposes?
> >
> > Regards
> >
> > Richard

Salut,

http://www.debugmode.com/wink/

nice for making help - demos.

-- 
Amicalment
Charlie




------------------------------

Message: 3
Date: Sun, 9 Aug 2009 16:07:48 +0200
From: Ga?l Le Hec'H <gael.lehech at ...626...>
Subject: Re: [Gambas-user] Problem updating svn from revision 2209
To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Message-ID:
    <edf1a990908090707u28262f79u32576ea90e0bcb11 at ...627...>
Content-Type: text/plain; charset=ISO-8859-1

> subversion feels stupid there. Just remove the libltdl directory by hand
> before doing 'svn update'.
>

succeeded to update after removal of main/libltdl but with revision
2228 I get this error when reconf-all

/usr/share/aclocal/nspr.m4:8: warning: underquoted definition of AM_PATH_NSPR
/usr/share/aclocal/nspr.m4:8:?? run info '(automake)Extending aclocal'
/usr/share/aclocal/nspr.m4:8:?? or see
http://sources.redhat.com/automake/automake.html#Extending-aclocal
Makefile.am:54: INSTALL_LTDL does not appear in AM_CONDITIONAL
Makefile.am:63: CONVENIENCE_LTDL does not appear in AM_CONDITIONAL
Makefile.am:39: Libtool library used but `LIBTOOL' is undefined
Makefile.am:39:?? The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
Makefile.am:39:?? to `configure.ac' and run `aclocal' and `autoconf' again.
Makefile.am:39:?? If `AC_PROG_LIBTOOL' is in `configure.ac', make sure
Makefile.am:39:?? its definition is in aclocal's search path.
/usr/share/automake-1.10/am/depend2.am: am__fastdepCC does not appear
in AM_CONDITIONAL
/usr/share/automake-1.10/am/depend2.am:?? The usual way to define
`am__fastdepCC' is to add `AC_PROG_CC'
/usr/share/automake-1.10/am/depend2.am:?? to `configure.ac' and run
`aclocal' and `autoconf' again.
/usr/share/automake-1.10/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.10/am/depend2.am:?? The usual way to define
`AMDEP' is to add one of the compiler tests
/usr/share/automake-1.10/am/depend2.am:???? AC_PROG_CC, AC_PROG_CXX,
AC_PROG_CXX, AC_PROG_OBJC,
/usr/share/automake-1.10/am/depend2.am:???? AM_PROG_AS, AM_PROG_GCJ, AM_PROG_UPC
/usr/share/automake-1.10/am/depend2.am:?? to `configure.ac' and run
`aclocal' and `autoconf' again.
Makefile.am: C source seen but `CC' is undefined
Makefile.am:?? The usual way to define `CC' is to add `AC_PROG_CC'
Makefile.am:?? to `configure.ac' and run `autoconf' again.
autoreconf: automake failed with exit status: 1

this on slackware 12.2, no change in gcc or whatever between both revision


Regards,

Ga?l



------------------------------

Message: 4
Date: Sun, 09 Aug 2009 17:15:05 +0200
From: Doriano Blengino <doriano.blengino at ...1909...>
Subject: Re: [Gambas-user] RE? Gambas-user Digest, Vol 39, Issue 22
To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Message-ID: <4A7EE7F9.6000304 at ...1909...>
Content-Type: text/plain; charset=UTF-8; format=flowed

Swee Kwang Tan ha scritto:
> Following code is my program, its has the "ilegal instruction" bug.
> In the main class
> PUBLIC SUB Main()
>           DIM fd AS FlowData
>           DIM at AS ShiXing
>           at = NEW ShiXing(fd)
>     
> END
>
> In the FlowData class
> PUBLIC CONST ZhengYin AS Integer = 0
> PUBLIC CONST BiJian AS Integer = 1 
> PUBLIC CONST JieCai AS Integer = 2
> PUBLIC CONST ShiShen AS Integer = 3
> PUBLIC CONST ShangGuan AS Integer = 4
> PUBLIC CONST PianCai AS Integer = 5
> PUBLIC CONST ZhengCai AS Integer = 6
> PUBLIC CONST QiSha AS Integer = 7
> PUBLIC CONST ZhengGuan AS Integer = 8
> PUBLIC CONST PianYin AS Integer = 9
>
> In the ShiXing Class
> ' Gambas class file
> PRIVATE fd AS FlowData
> STATIC tk0 AS Integer[] = [fd.ShangGuan, fd.JieCai, fd.BiJian, fd.PianCai, fd.PianYin, fd.ZhengYin, fd.QiSha, fd.ZhengGuan, fd.JieCai, fd.ZhengYin]
> STATIC tk1 AS Integer[] = [fd.BiJian, fd.JieCai, fd.ShiShen, fd.ShangGuan, fd.PianCai, fd.ZhengCai, fd.QiSha, fd.ZhengGuan, fd.PianYin, fd.ZhengYin]
> STATIC tk2 AS Integer[] = [fd.ShiShen, fd.ShangGuan, fd.PianCai, fd.ZhengCai, fd.PianYin, fd.ZhengYin, fd.QiSha, fd.ZhengGuan, fd.BiJian, fd.JieCai]
> STATIC tk3 AS Integer[] = [fd.PianCai, fd.QiSha, fd.PianYin, fd.ZhengYin, fd.ShangGuan, fd.ZhengCai, fd.JieCai, fd.BiJian, fd.ShiShen, fd.ZhengGuan]
> STATIC tk4 AS Integer[] = [fd.ShangGuan, fd.JieCai, fd.BiJian, fd.PianCai, fd.PianYin, fd.ZhengYin, fd.QiSha, fd.ZhengGuan, fd.JieCai, fd.ZhengYin]
> STATIC tk5 AS Integer[] = [fd.BiJian, fd.JieCai, fd.ShiShen, fd.ShangGuan, fd.PianCai, fd.ZhengCai, fd.QiSha, fd.ZhengGuan, fd.PianYin, fd.ZhengYin]
> STATIC tk6 AS Integer[] = [fd.ShiShen, fd.ShangGuan, fd.PianCai, fd.ZhengCai, fd.PianYin, fd.ZhengYin, fd.QiSha, fd.ZhengGuan, fd.BiJian, fd.JieCai]
> STATIC tk7 AS Integer[] = [fd.PianCai, fd.QiSha, fd.PianYin, fd.ZhengYin, fd.ShangGuan, fd.ZhengCai, fd.JieCai, fd.BiJian, fd.ShiShen, fd.ZhengGuan]
> STATIC tk8 AS integer[] = [fd.ShangGuan, fd.JieCai, fd.BiJian, fd.PianCai, fd.PianYin, fd.ZhengYin, fd.QiSha, fd.ZhengGuan, fd.JieCai, fd.ZhengYin]
> STATIC tk9 AS Integer[] = [fd.BiJian, fd.JieCai, fd.ShiShen, fd.ShangGuan, fd.PianCai, fd.ZhengCai, fd.QiSha, fd.ZhengGuan, fd.PianYin, fd.ZhengYin]
>
> PUBLIC SUB _new(fd1 AS FlowData)
>         fd = fd1
>   
>   
> END
> And I don't need to write it  like this, I' ve a perfect solution to write.
>   
I think that in Main(), when you do

          at = NEW ShiXing(fd)

you are creating a new instance of ShiXing, passing the "fd" which is 
NULL. Then the new "ShiXing" tries to refer to fd, thinking it is an 
object, but it is not because it is NULL. This should raise some Gambas 
error, but not an Illegal Instruction.

I also notice that the class FlowData only contains constants; if it is 
so, then there is no need to use a class - better to use a module. This 
is an argument I don't understand much, but your way to do seems 
erroneous to me. In ShiXing._new() you assign fd=fd1: there is collision 
as fd is both a name of class, and an instance of an object. Again, I 
don't know how this should be interpreted, but my idea is it should be 
forbidden, and you should avoid it, and Gambas should refuse 
compilation. But you use this strange form, Gambas does not catch it as 
an error nor during compilation and nor during runtime, and something 
strange happens. This is matter for Benoit...

Hope this explains a little more...

Regards,

-- 
Doriano Blengino

"Listen twice before you speak.
This is why we have two ears, but only one mouth."




------------------------------

Message: 5
Date: Sun, 9 Aug 2009 17:23:35 +0200
From: Beno?t Minisini <gambas at ...1...>
Subject: Re: [Gambas-user] Problem updating svn from revision 2209
To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Message-ID: <200908091723.35071.gambas at ...1...>
Content-Type: Text/Plain;  charset="utf-8"

> > subversion feels stupid there. Just remove the libltdl directory by hand
> > before doing 'svn update'.
>
> succeeded to update after removal of main/libltdl but with revision
> 2228 I get this error when reconf-all
>
> /usr/share/aclocal/nspr.m4:8: warning: underquoted definition of
> AM_PATH_NSPR /usr/share/aclocal/nspr.m4:8:   run info '(automake)Extending
> aclocal' /usr/share/aclocal/nspr.m4:8:   or see
> http://sources.redhat.com/automake/automake.html#Extending-aclocal
> Makefile.am:54: INSTALL_LTDL does not appear in AM_CONDITIONAL
> Makefile.am:63: CONVENIENCE_LTDL does not appear in AM_CONDITIONAL
> Makefile.am:39: Libtool library used but `LIBTOOL' is undefined
> Makefile.am:39:   The usual way to define `LIBTOOL' is to add
> `AC_PROG_LIBTOOL' Makefile.am:39:   to `configure.ac' and run `aclocal' and
> `autoconf' again. Makefile.am:39:   If `AC_PROG_LIBTOOL' is in
> `configure.ac', make sure Makefile.am:39:   its definition is in aclocal's
> search path.
> /usr/share/automake-1.10/am/depend2.am: am__fastdepCC does not appear
> in AM_CONDITIONAL
> /usr/share/automake-1.10/am/depend2.am:   The usual way to define
> `am__fastdepCC' is to add `AC_PROG_CC'
> /usr/share/automake-1.10/am/depend2.am:   to `configure.ac' and run
> `aclocal' and `autoconf' again.
> /usr/share/automake-1.10/am/depend2.am: AMDEP does not appear in
> AM_CONDITIONAL /usr/share/automake-1.10/am/depend2.am:   The usual way to
> define
> `AMDEP' is to add one of the compiler tests
> /usr/share/automake-1.10/am/depend2.am:     AC_PROG_CC, AC_PROG_CXX,
> AC_PROG_CXX, AC_PROG_OBJC,
> /usr/share/automake-1.10/am/depend2.am:     AM_PROG_AS, AM_PROG_GCJ,
> AM_PROG_UPC /usr/share/automake-1.10/am/depend2.am:   to `configure.ac' and
> run `aclocal' and `autoconf' again.
> Makefile.am: C source seen but `CC' is undefined
> Makefile.am:   The usual way to define `CC' is to add `AC_PROG_CC'
> Makefile.am:   to `configure.ac' and run `autoconf' again.
> autoreconf: automake failed with exit status: 1
>
> this on slackware 12.2, no change in gcc or whatever between both revision
>
>
> Regards,
>
> Ga?l
>

Since rev. 2210, I have upgraded the source package to libtool 2.6. Which 
version of libtool do you use on slackware?

-- 
Beno?t



------------------------------

Message: 6
Date: Sun, 09 Aug 2009 18:34:55 +0200
From: Leonardo Miliani <leonardo at ...1237...>
Subject: Re: [Gambas-user] Errors compiling Gambas
To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Message-ID: <4A7EFAAF.6020503 at ...1237...>
Content-Type: text/plain; charset=UTF-8; format=flowed

Beno?t Minisini ha scritto:
>> Beno?t Minisini ha scritto:
>>>> This is the output of the make command on Gambas2 SVN.
>>> I think you have a problem on your system, as gcc tells it does not
>>> recognize an option...
>>>
>>> Please post the full output of the compilation process, i.e. with
>>> configure.
>>>
>>> And try to do a checkout from scratch, and a ./reconf before doing
>>> "./configure -C".
>>>
>>> Regards,
>> I suppose you know that Arch Linux is a rolling release distro so every
>> program is always at the very last version. Maybe there could be a
>> compatibily issue between Gambas sources and gcc 4.4.1 that is installed
>> on my system?
>>
>> P.S.:
>> I've inclued part of the /reconf-all command too. It contains a loto of
>> messages that I've never seen before.
> 
> You have clearly a problem with your installation of gcc. I think either you 
> didn't install it completely (for example a new gcc with an old linker), or 
> the new version of gcc is not compatible with the old one, but I think it is 
> unlikely.
> 
> Regards,
> 

Could you please post the the version of gcc needed to compile Gambas?
Or the version that you used? I cannot understand why until the rev. 
#2127 I was able to compile Gambas and now I'm not.

-- 
Web: www.leonardomiliani.com
E-mail: leonardo at ...1237...
Scegli software opensource - Choose opensource software

Co-fondatore di Gambas-it.org
Il sito di riferimento della comunit? italiana degli utenti di Gambas
www.gambas-it.org



------------------------------

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july

------------------------------

_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


End of Gambas-user Digest, Vol 39, Issue 26
*******************************************


_______________________________________
 辣茩妏蚚閉湮⺍講捇誥蚘眊 
 http://cn.mail.yahoo.com 


More information about the User mailing list