Problem Running CUTE on Ecplipse Mars

Added by Christian Schmelzer almost 3 years ago

Hi!

I install Cute like user guide.
The compiler runs without errormessage but the Console-Window was empty (no text shown) also the Test-Result-Window show no test.

Please can you help me?

Thanks!


Replies (7)

RE: Problem Running CUTE on Ecplipse Mars - Added by Thomas Corbat almost 3 years ago

Hi Christian

Did you actually execute the executable generated by the compiler? At least in the console there should be the output of the unit test. Something like this:

#beginning AllTests 1

#starting thisIsATest

#failure thisIsATest ..\src\Test.cpp:7 thisIsATest: start writing tests

#ending AllTests

Regards
Thomas

RE: Problem Running CUTE on Ecplipse Mars - Added by Christian Schmelzer almost 3 years ago

Hi Thomas,

thanks for the fast answer.

There is no output in console.

RE: Problem Running CUTE on Ecplipse Mars - Added by Thomas Corbat almost 3 years ago

Oh that's unfortunate.

Is there output when runnung other executables from different projects?
Is there output when you run the test executable from a console outside of Eclipse?
What compiler do you use?

RE: Problem Running CUTE on Ecplipse Mars - Added by Christian Schmelzer almost 3 years ago

I used actual eclipse Mars with CDT 8.7 and MinGW 4.8.1

Other Projects in C or C++ runs.
I install Boost. The example runs.

I also test with the actual Cevelop Release 1.3 with the same problem.

There is a warning in build process. But I think that is not the problem.

**** Incremental Build of configuration Debug Gcov for project HelloCute ****
Info: Internal Builder is used for build
g++ "-IC:\\Users\\...\\HelloCute\\cute" "-IC:\\Users\\...\\HelloCute\\boost" -O0 -g3 -Wall -c -fmessage-length=0 -fprofile-arcs -ftest-coverage -o "src\\Test.o" "..\\src\\Test.cpp"
In file included from C:\Users\...\HelloCute\boost/boost/bind/bind.hpp:29:0,
from C:\Users\...\HelloCute\boost/boost/bind.hpp:22,
from C:\Users\...\HelloCute\cute/cute_determine_library.h:37,
from C:\Users\...\HelloCute\cute/cute_test.h:23,
from C:\Users\...\HelloCute\cute/cute_suite.h:22,
from C:\Users\...\HelloCute\cute/cute.h:29,
from ..\src\Test.cpp:1:
C:\Users\...\HelloCute\boost/boost/bind/arg.hpp: In constructor 'boost::arg<I>::arg(const T&)':
C:\Users\...\HelloCute\boost/boost/bind/arg.hpp:37:22: warning: typedef 'T_must_be_placeholder' locally defined but not used [-Wunused-local-typedefs]
typedef char T_must_be_placeholder[ I == is_placeholder<T>::value? 1: -1 ];
^
g++ -fprofile-arcs -ftest-coverage -std=c99 -o HelloCute.exe "src\\Test.o"

RE: Problem Running CUTE on Ecplipse Mars - Added by Thomas Corbat almost 3 years ago

Ok, I don't think the warning is a problem either.

What happens if you execute HelloCute.exe on an external console?

There used to be a problem with CDT preventing the console output from being displayed correctly: https://www.eclipse.org/forums/index.php/t/197552/
But in this case I guess all programs will lack output.

RE: Problem Running CUTE on Ecplipse Mars - Added by Christian Schmelzer almost 3 years ago

Thanks for this note.

Now I found the problem.

In console there comes the message "libstdc++-6.dll not found".

I copy the *.dll to Windows/system32 and now it works.

Thanks for strong support!

Christian

RE: Problem Running CUTE on Ecplipse Mars - Added by Thomas Corbat almost 3 years ago

Ah, I'm glad you figured it out. We'll remember that issue in case some else runs into that problem too.

Regards
Thomas

(1-7/7)