/tmp/ccw01rfs.o: in function `writeint’: libtest.c:(.text+0x0): multiple definition of `writeint’

0
377

/tmp/ccw01rfs.o:(.

file-name-map-file-map-string-map.

In file `test/test_ccr01rfs.

In function `writeint’: testtest_ccr01rfs.c:(.

In function `main’: testtest_ccr01rfs.

In function `main’: testtest_ccr01rfs.

tmpccw01rfs.o:tmpccw01rfs.o:tmpccw01rfs.o:tmpccw01rfs.o:tmpccw01rfs.o:tmpccw01rfs.o:tmpccw01rfs.o:tmpccw01rfs.

The test program has failed to compile because there are multiple definition of `writeint’.

This is a common problem if you’re using C++. The compiler cannot find the definition of writeint, so you get multiple definitions.

The problem is that the compiler can’t figure out when multiple definitions of a function exist, so it thinks the function has no definition and so it gives up.

LEAVE A REPLY

Please enter your comment!
Please enter your name here