I am getting the following link error if I have multiple CPPUNIT_TEST_SUITE_REGISTRATION(for different fixtures) in my .cpp main file. Could you please help
../src/fsmtest/test_main.cpp:11: error: redefinition of `autoRegisterRegistry__58'
../src/fsmtest/test_main.cpp:12: error: redefinition of `autoRegisterRegistry__58'
../src/fsmtest/test_main.cpp:13: error: redefinition of `autoRegisterRegistry__58'
If I remove all but just leave one of the CPPUNIT_TEST_SUITE_REGISTRATION macro to register the fixtures, the project compiles ok. I am using MinGW g++ compile 3.4.5
$ g++ --version
g++.exe (GCC) 3.4.5 (mingw special)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.