Author |
|
diego Intermediate
Joined: December 13 2005 Location: United States Posts: 3
|
Posted: December 13 2005 at 9:25am | IP Logged
|
|
|
Hi, i'm trying to test it but I can't compile...
I'm trying with visual studio 2005 Beta. If I open the .dsw file it tries to transform the files but if I "Open Project"/"C++ Project" it opens without trying to transform.
Anyway when I compile it gives me:
Error 1 error C2220: warning treated as error - no 'object' file generated c:\Program\...\AddressBook.cpp 110
Any ideas?
(line 110 is pfile = fopen("AddressBook.txt","rt");)
Thank you!
|
Back to Top |
|
|
support Administrator
Joined: January 26 2005 Location: United States Posts: 1666
|
Posted: December 13 2005 at 11:54am | IP Logged
|
|
|
Hi diego,
Please post the WARNINGS that are being generated. Your error mesage above is generated by the compiler because your compiler settings are such that "warnings are being treated as errors". We need to see the warnings that are being generated.
Support
|
Back to Top |
|
|
diego Intermediate
Joined: December 13 2005 Location: United States Posts: 3
|
Posted: December 13 2005 at 2:01pm | IP Logged
|
|
|
StdAfx.cpp
WINVER not defined. Defaulting to 0x0502 (Windows Server 2003)
Compiling...
AddressBook.cpp
..\Common\AddressBook.cpp(110) : error C2220: warning treated as error - no 'object' file generated
..\Common\AddressBook.cpp(110) : warning C4996: 'fopen' was declared deprecated
C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(235) : see declaration of 'fopen'
..\Common\AddressBook.cpp(205) : warning C4996: 'fopen' was declared deprecated
C:\Program Files\Microsoft Visual Studio 8\VC\include\stdio.h(235) : see declaration of 'fopen'
..\Common\AddressBook.cpp(350) : warning C4996: 'strncpy' was declared deprecated
C:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(123) : see declaration of 'strncpy'
..\Common\AddressBook.cpp(351) : warning C4996: 'strncpy' was declared deprecated
C:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(123) : see declaration of 'strncpy'
..\Common\AddressBook.cpp(352) : warning C4996: 'strncpy' was declared deprecated
C:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(123) : see declaration of 'strncpy'
..\Common\AddressBook.cpp(413) : warning C4996: 'strncpy' was declared deprecated
C:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(123) : see declaration of 'strncpy'
..\Common\AddressBook.cpp(414) : warning C4996: 'strncpy' was declared deprecated
C:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(123) : see declaration of 'strncpy'
..\Common\AddressBook.cpp(415) : warning C4996: 'strncpy' was declared deprecated
C:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(123) : see declaration of 'strncpy'
etc...
|
Back to Top |
|
|
support Administrator
Joined: January 26 2005 Location: United States Posts: 1666
|
Posted: December 13 2005 at 3:35pm | IP Logged
|
|
|
You have 2 choices:
1)
Turn off "warnings as errors" in your compiler settings.
2)
Use a #pragma and disable warning #4996 as in something like:
#pragma warning( disable : 4996)
Put it at the top of each module that gets these warnings or in your precompiled header file if you use that.
Note: We offer "very limited" support for the trial version of the VOIP Media Engine. Question are limited to pre-sales technical questions about the product.
Support
|
Back to Top |
|
|
diego Intermediate
Joined: December 13 2005 Location: United States Posts: 3
|
Posted: December 13 2005 at 4:10pm | IP Logged
|
|
|
yes, option #1 worked.
Thanks!
I will test it properly now.
|
Back to Top |
|
|