ORBit-2.0 cpp bug?
- From: Paco Moya <fmoya inf-cr uclm es>
- To: orbitcpp-list gnome org
- Subject: ORBit-2.0 cpp bug?
- Date: Wed, 5 Mar 2003 17:59:05 +0100
I get a segfault with this extremely simple example.
Any clue? The smart pointer associated to s.a seems
to be NULL...
tst.idl:--------------------------------------------
module test {
typedef sequence<long> seq;
struct sseq {
seq a;
};
};
main.cc:--------------------------------------------
#include "tst-cpp.h"
int main()
{
test::sseq s;
s.a->length(10);
}
Makefile:------------------------------------------
CFLAGS=`pkg-config --cflags ORBit-2.0`
CXXFLAGS=-g `pkg-config --cflags ORBit-2.0-cpp`
LDLIBS=-g `pkg-config --libs ORBit-2.0-cpp`
CC=g++
main: main.o tst-cpp.o tst-common.o
tst-cpp.cc tst-cpp.h: tst.idl
orbit-idl-2 -lcpp $<
tst-common.c tst.h: tst.idl
orbit-idl-2 -lc $<
main.o: tst-cpp.h tst.h
clean:
$(RM) tst.h tst-* *.o main
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]