Hello,

I saw this in the past when I moved classes and namespaces using make to
build.  I "solved" this by avoiding make and running valac directly.  

I am seeing it this again, but the circumstances are different.  I
would like to know the cause and what steps to take to avoid it.

I use Gee.TestCase (in gee_testcase.vala) for testing.  When I compile
with valac ther are no errors, but when I run make and the output was:

$ make -C ../
make: Entering directory `/home/bwinfrey/Source/vala/tests/test-libcouch'
  VALAC  gee_testcase.vala
couchdb-database-api.vapi:6.2-6.40: error: `Gee' already contains a definition 
for `TestCase'
        public abstract class TestCase : Object {
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test-couchdb-session.vapi:6.2-6.40: note: previous definition of `TestCase' was 
here
        public abstract class TestCase : Object {
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
couchdb-session.vapi:6.2-6.40: error: `Gee' already contains a definition for 
`TestCase'
        public abstract class TestCase : Object {
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test-couchdb-session.vapi:6.2-6.40: note: previous definition of `TestCase' was 
here
        public abstract class TestCase : Object {
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
couchdb-server-api.vapi:6.2-6.40: error: `Gee' already contains a definition 
for `TestCase'
        public abstract class TestCase : Object {
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test-couchdb-session.vapi:6.2-6.40: note: previous definition of `TestCase' was 
here
        public abstract class TestCase : Object {
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/gee_testcase.vala:23.1-23.43: error: `Gee' already contains a definition 
for `TestCase'
public abstract class Gee.TestCase : Object {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
test-couchdb-session.vapi:6.2-6.40: note: previous definition of `TestCase' was 
here
        public abstract class TestCase : Object {
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Compilation failed: 4 error(s), 0 warning(s)
make: *** [.vala-aux/gee_testcase.dep] Error 1
make: Leaving directory `/home/bwinfrey/Source/vala/tests/test-libcouch'

Thank you for any help you can give.

-- 
Regards,
Brian Winfrey

_______________________________________________
vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to