cppunit in dev-c++
-
Hallo!
Ich programmiere mit Dev-C++. Nun sollen die Module getestet werden. Da dachte ich an cppunit. Nun lese ich in der Windows-Installationsanleitung zu cppunit, dass das nur mit Microsoft Visual C++ 6.0 oder höher klappt! Ist das richtig? Welche alternativen gibt es, wenn ich a) bei Windows bleiben will b) bei dev-c++ bleiben will??
-
CppUnitLite => http://www.objectmentor.com/resources/downloads/index
Wobei ich nicht weiß, wieviel das "Lite" ausmacht, ich habe noch nicht mit CppUnit gearbeitet.
-
Hmm, in der readme zu cppunitlite steht gleich in der ersten Zeile:
"Instructions for using CppUnitLite with MS VC++:"Bist du dir sicher, dass das mit dev-c++ funktioniert?
-
Sagen wirs mal so: Ich habs mit dem MSVC noch nicht probiert, aber mit dem gcc, dem djgpp und dem Borland C++ 5.?(die kostenlose Version halt) geht es.
-
ok danke, werd das dann auch mal probieren
-
Ich brauche mal Hilfe bei der Installation:
Instructions for using CppUnitLite with MS VC++:
Extract all these filed to a directory (CppUnitLite)
Move StackMain.cpp, StackTest.cpp and Stack.h to some other directory
Create a workspace
Create a project for a static library called CppUnitLite, turn off any pre-compiled headers stuff
Add all the CppUnitLite cpp and h files to the CppUnitLite project
Get it to compileIch denke so weit hab ich das. Ergebnis is eine Datei "CppUnitLite.a".
Ab hier kommen die Probleme:
Create another project (Stack)
Add StackMain.cpp, StackTest.cpp and Stack.h to the project
Make the Stack project depend on CppUnitLite
Build it
Run it
Evolve itWas für ein Projekt denn? Wieder eine static library??
Soll ich die "CppUnitLite.a" includen? Wie denn???
-
Nein, das andere ist ein normales Programm. Stack ist übrigens nur ein Beispiel, falls das nicht rübergekommen ist, das brauchst du nicht unbedingt ...
Wenn du nicht weißt wie man beim DevC++ Libraries einbindet lies die Anleitung, das ist kein Problem mit CppUnitLite.
-
Dieser Thread wurde von Moderator/in evilissimo aus dem Forum C++ in das Forum Rund um die Programmierung verschoben.
Im Zweifelsfall bitte auch folgende Hinweise beachten:
C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?Dieses Posting wurde automatisch erzeugt.
-
Hab jetzt mal dieses Beispiel mit Stack ausprobiert. Kompiliert wird auch, aber wie bekomm ich jetzt die Ausgabe?? Darum gehts ja schließlich!
Gibts mal irgendwo in Tutorial zu CppUnitLITE??