List Info

Thread: CPPUNIT Compile Error




CPPUNIT Compile Error
country flaguser name
Lebanon
2008-02-07 06:28:21

Hi All

 

I have followed

http://sipx-wiki.calivia.com/index.php/SipXtapi_and_sipXezPhone_Build_Environment_for_Windows#Installing_Microsoft_Visual_Studio

 

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 Settingsali.jawadMy Documentssipxtapi2CPPunitsrcmsvc6testrunnerDebugUnicodeBuildLog.htm"

1>TestRunner - 1 error(s), 4 warning(s)

2>------ Build started: Project: TestPlugInRunner, Configuration: Debug Win32 ------

2>Updating c:documents and settingsali.jawadmy documentssipxtapi2cppunitlibcppunitd_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 settingsali.jawadmy documentssipxtapi2cppunitlibcppunitd_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

 

Re: CPPUNIT Compile Error
country flaguser name
United States
2008-02-07 07:16:56
You only need cppunit if you are compiling and running the unit tests. 

Just don't build the project files that end in 'Test'.  Though, configuration for most compilers is there for getting cppunit compiled. Are you sure you have all the prereqs?

On Feb 7, 2008, at 7:28, Ali Jawad < ali.jawadsplendor.net">ali.jawadsplendor.net> wrote:

Hi All

 

I have followed

http://sipx-wiki.calivia.com/index.php/SipXtapi_and_sipXezPhone_Build_Environment_for_Windows#Installing_Microsoft_Visual_Studio

 

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> ; &nbsp; &nbsp; &nbsp; 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> ; &nbsp; &nbsp; &nbsp; 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 Settingsali.jawadMy Documentssipxtapi2CPPunitsrcmsvc6testrunnerDebugUnicodeBuildLog.htm"

1>TestRunner - 1 error(s), 4 warning(s)

2>------ Build started: Project: TestPlugInRunner, Configuration: Debug Win32 ------

2>Updating c:documents and settingsali.jawadmy documentssipxtapi2cppunitlibcppunitd_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 settingsali.jawadmy documentssipxtapi2cppunitlibcppunitd_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-devlist.sipfoundry.org">sipxtapi-devlist.sipfoundry.org
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )