Re: XForms: Segmentation Faults with C++

Alberto BARSELLA (ishark@lsh01.univ-lille1.fr)
Thu, 25 Feb 1999 11:14:56 +0000 (/etc/localtime)

# To subscribers of the xforms list from Alberto BARSELLA <ishark@lsh01.univ-lille1.fr> :

Hi again (sorry for the 2-stage answer...),

> My class definitions (don't laugh, I'm new to C++ ):

I added in an:

extern "C" {
#include "forms.h"
}

at the top and:

int main(int argc, char** argv)
{
fl_initialize(&argc, argv, "test", 0, 0);

IF_RobotControl_Class* rc = new IF_RobotControl_Class();

delete rc;
}

at the bottom, compiled with:

g++ -o xforms-bang xforms-bang.cpp -lforms -lX11 -L/usr/X11R6/lib/

and it runs (the result is not nice :). Clicking on the part of the button
which I can see closes the app without any error.
I'm running an up-to-date RedHat 5.2 linux with xforms 0.88.1.

Bye,
Alberto

--
Alberto BARSELLA
PGP fingerprint = 13 3F 22 D2 0B 0A D3 25  F1 89 FE B5 82 AD 75 2A
** Beliefs are dangerous. Beliefs allow the mind to stop functioning.
A non-functioning mind is clinically dead.  Believe in nothing... **

_________________________________________________ To unsubscribe, send the message "unsubscribe" to xforms-request@bob.usuhs.mil or see http://bob.usuhs.mil/mailserv/xforms.html XForms Home Page: http://bragg.phys.uwm.edu/xforms List Archive: http://bob.usuhs.mil/mailserv/list-archives/