Home > cppunit tutorial > cppunit compile error

Cppunit Compile Error

Contents

port of JUnit Bugs CppUnit - C++ port of JUnit Brought to you by: blep Summary Files Reviews Support Wiki Mailing Lists Tickets â–¾ Feature Requests Patches Bugs Support Requests News Discussion cppunit tutorial Code Create Ticket View Stats Group 1.10.2 1.11.0 1.12.0 1.12.1 -- deleted --

Cppunit Examples

-- deleted -- Searches Changes Closed Tickets Open Tickets Help Formatting Help #28 Compile error when 'gmake check' Milestone: --

Cppunit Download

deleted -- Status: closed-duplicate Owner: nobody Labels: None Priority: 5 Updated: 2001-10-19 Created: 2001-09-28 Creator: Anonymous Private: No On Solaris 8, with the Forte 6 C++ compiler, I get the following error

Install Cppunit Linux

when running 'gmake check': CC -DHAVE_CONFIG_H -I. -I. -I../../config -I../../include -I../../include -g -c -o BaseTestCase.o `test -f BaseTestCase.cpp || echo './'`BaseTestCase.cpp "BaseTestCase.h", line 11: Error: BaseTestCase::__ThisTestCaseType is not accessible from BaseTestCase::ThisTestCaseFactory::makeTest(). 1 Error(s) detected. gmake[3]: *** [BaseTestCase.o] Error 1 gmake[3]: Leaving directory `/space/local_users/sutton/projects/cppunit-1.6.0/examples/cppunittest' gmake[2]: *** [check-am] Error 2 gmake[2]: Leaving directory `/space/local_users/sutton/projects/cppunit-1.6.0/examples/cppunittest' gmake[1]: *** [check-recursive] Error 1 gmake[1]: Leaving directory `/space/local_users/sutton/projects/cppunit-1.6.0/examples' gmake: *** [check-recursive] Error cppunit tutorial pdf 1 Discussion Steven Robbins - 2001-10-19 Logged In: YES user_id=130415 This is a repeat of bug#464844. We believe the problem has been addressed in release 1.6.1. Please check, and follow up with bug #464844. -smr99 If you would like to refer to this comment somewhere else in this project, copy and paste the following link: Steven Robbins - 2001-10-19 status: open --> closed-duplicate If you would like to refer to this comment somewhere else in this project, copy and paste the following link: SourceForge About Site Status @sfnet_ops Powered by Apache Alluraâ„¢ Find and Develop Software Create a Project Software Directory Top Downloaded Projects Community Blog @sourceforge Resources Help Site Documentation Support Request © 2016 Slashdot Media. All Rights Reserved. Terms Privacy Opt Out Choices Advertise Get latest updates about Open Source Projects, Conferences and News. Sign up for the SourceForge newsletter: I agree to receive quotes, newsletters and other information from sourceforge.net and its partners regarding IT services and products. I understand that I can withdraw my consent at any time. Please refer to our Privacy Policy or Contact Us for more details You seem to have CSS turned off. Please do

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow install cppunit ubuntu the company Business Learn more about hiring developers or posting ads with us Stack cppunit example linux Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of cppunit cookbook 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error with compile source file, which used cppunit classes up vote 1 down vote favorite I'va installed https://sourceforge.net/p/cppunit/bugs/28/ cppunit library on my kubuntu 11.10, using this command: sudo apt-get install libcppunit-1.12-1 libcppunit-dev libcppunit-doc sudo apt-get install libcppunit-subunit-dev libcppunit-subunit0 before this i run the: apt-cache search cppunit command, as a result: libcppunit-1.12-1 - Unit Testing Library for C++ libcppunit-dev - Unit Testing Library for C++ libcppunit-doc - Unit Testing Library for C++ libcppunit-subunit-dev - SubunitTestProgressListener for CPPUnit - Development headers libcppunit-subunit0 - SubunitTestProgressListener for CPPUnit - C++ shared library libcunit1 - http://stackoverflow.com/questions/8142562/error-with-compile-source-file-which-used-cppunit-classes Unit Testing Library for C libcunit1-dev - Unit Testing Library for C -- development files libcunit1-doc - Unit Testing Library for C -- documentation libcunit1-ncurses - Unit Testing Library for C (ncurses) libcunit1-ncurses-dev - Unit Testing Library for C (ncurses) -- development files libqxcppunit-dev - A Qt4-based GUI for running tests with CppUnit - development files libqxcppunitd1 - A Qt4-based GUI for running tests with CppUnit I've got a simple source file for studying unit-testing: #include #include #include class MyDate { private: struct Duration { int year; int month; int day; Duration( int y, int m, int d ) : year( y ), month( m ), day( d ) {} } mdata; public: MyDate() : mdata( 2011, 11, 15 ) {} MyDate( int year, int month, int day ) : mdata( year, month, day ) {} int getYear() const { return mdata.year; } int getMonth() const { return mdata.month; } int getDay() const { return mdata.day; } friend bool operator < ( MyDate const& lhs, MyDate const& rhs ) { if ( lhs.mdata.year > rhs.mdata.year ) return false; else if ( lhs.mdata.year < rhs.mdata.year ) return true; else if ( lhs.mdata.year == rhs.mdata.year ) { if ( lhs.mdata.month > rhs.mdata.month ) return false; else if ( lhs.mdata.month < rhs.mdata.month )

solaris port done by Jérôme Lacoste. The main purpose of CppUnit is to support developers in doing their unit http://www.comp.nus.edu.sg/~cs3214s/tools/cppunitSol.html testing of C++ programs. For students using the C++ language for http://osdir.com/ml/voip.sipxtapi.devel/2008-02/msg00014.html the project, we expect you to use CppUnit extensively for your testing purposes. Recall that one of the required program quality attributes for your project is reliability. CppUnit can be used to help you achieve that. This document can be considered a "port" of the cppunit tutorial JUnit Guide I wrote. In particular, this document talks about using CppUnit in Solaris e.g. in sun450 (although it should also work for other Unix variants such as Linux). As in the JUnit Guide, I have included only the bare minimum to get you started. I will first go through the installation of CppUnit in the cppunit compile error next section, followed by a description of how to use CppUnit using a sample program. Next, I will suggest some ways of organizing your project and test codes before ending the document with pointers to some useful references. Installing CppUnit Installation of CppUnit can be broken down into the following steps: Download the solaris port of CppUnit and unpack the archive in a location of your choice. For the rest of this document, I will assume that you are saving and unpacking your archive at the directory /home/student/engpk: cd /home/student/engpk gunzip UnixCppUnit.tar.gz tar -xvf UnixCppUnit.tar The above three commands will create a new directory called UnixCppUnit in /home/student/engpk. Compile the CppUnit source files: cd /home/student/engpk/UnixCppUnit make After the compilation, you should have the following in /home/student/engpk/UnixCppUnit/lib: -rwx------ 1 engpk compsc 1248528 libCppUnit.so* -rwx------ 1 engpk compsc 1200508 libCppUnitRunner.so* -rwx------ 1 engpk compsc 1215800 libCppUnitTest.so* Note: If you're compiling on Linux, the compilation will fail. What you need to do is to modify the file Make.rules in

Step by step, when I compiled I got some errors about cppunit that I had not installed so I got it and tried to compile it but I get 1> Message: 'This function or variable may be unsafe. Consider using _vsnwprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' 1>.\MsDevCallerListCtrl.cpp(107) : error C2664: 'AfxTrace' : cannot convert parameter 1 from 'const char [12]' to 'LPCTSTR' 1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast 1>Creating browse information file... 1>Microsoft Browse Information Maintenance Utility Version 8.00.50727 1>Copyright (C) Microsoft Corporation. All rights reserved. 1>Build log was saved at "file://c:\Documents and Settings\ali.jawad\My Documents\sipxtapi2\CPPunit\src\msvc6\testrunner\DebugUnicode\BuildLog.htm" 1>TestRunner - 1 error(s), 4 warning(s) 2>------ Build started: Project: TestPlugInRunner, Configuration: Debug Win32 ------ 2>Updating c:\documents and settings\ali.jawad\my documents\sipxtapi2\cppunit\lib\cppunitd_dll.dll 2>The system cannot find the file specified. 2>Project : error PRJ0019: A tool returned an error code from "Updating c:\documents and settings\ali.jawad\my documents\sipxtapi2\cppunit\lib\cppunitd_dll.dll" Any clues ? Note: I did not include CPPUNIT at first because there was an optional note beside it, how can I compile without CPPUNIT in case I can not get around this. Thx _______________________________________________ sipxtapi-dev mailing list sipxtapi-dev@xxxxxxxxxxxxxxxxxxx List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/ Thread at a glance: Previous Message by Date: Re: VC6 build problem Hi Alexander, I found the problem, it was a casting of the OsProtetctedEvent in file CpCall.cpp line 321. I changed it in my local copy, but I'm not sure what the correct solution is. mpMediaInterface->playBuffer((char*)buffer, bufSize, type, repeat, local, remote, (int)ev); Best regards, Thomas -----Ursprüngliche Nachricht----- Von: alexander.chemeris@xxxxxxxxx [mailto:alexander.chemeris@xxxxxxxxx] Im Auftrag von Alexander Chemeris Gesendet: Mittwoch, 6. Februar 2008 18:16 An: Kempf, Thomas (FRIED:NR10) Cc: sipxtapi-dev@xxxxxxxxxxxxxxxxxxx Betreff: Re: [sipxtapi-dev] VC6 build problem Hi, On 1/29/08, Thomas Kempf wrote: > I can confirm the same problems under Linux. Unfortunately, I don't > have a clue how to fix it. If you're still seeing this error - could you post gcc output with errors here? And tell us which svn revision and gcc version are you using. I have not noticed any errors building on Lin

 

Related content

No related pages.