Skip to content

Commit 98f8315

Browse files
committed
Fix the C++ test
1 parent c47172f commit 98f8315

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cxxwriter.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public class CxxWriter : ValabindWriter {
196196
// classname, c.is_compact.to_string () );
197197

198198
if (context.profile == Profile.GOBJECT)
199-
classname = "%s_%s".printf (nspace, classname);
199+
classname = "%s%s".printf (nspace, classname);
200200

201201
if (defined_classes.lookup (classname))
202202
return;

t/vala/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ cxx:
1111
valabind-cc python vstest -NFood -x ${VAPI} ${VALBINDCCFLAGS}
1212
valabind --cxx -m vstest vstest.vapi
1313
# compile vstest.cxx as included in test.cxx
14-
# gcc -c vstest.c -I. `pkg-config gobject-2.0 --cflags --libs`
15-
g++ test.cxx -I. `pkg-config gobject-2.0 --cflags --libs`
14+
gcc -c vstest.c -I. `pkg-config gobject-2.0 --cflags --libs`
15+
g++ vstest.o test.cxx -I. `pkg-config gobject-2.0 --cflags --libs`
1616
#g++ test.cxx -I. `pkg-config gobject-2.0 --cflags --libs`
1717

1818
test:

0 commit comments

Comments
 (0)