Return to LanScape's home page Go back a page...       Active TopicsActive Topics   Display List of Forum MembersMember List   Knowledge Base SearchSearch   HelpHelp  RegisterRegister  LoginLogin

LanScape VOIP Media Engine™ - Pre-Sales Technical Support
 LanScape Support Forum -> LanScape VOIP Media Engine™ - Pre-Sales Technical Support
Subject Topic: compilation error Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
diego
Intermediate
Intermediate


Joined: December 13 2005
Location: United States
Posts: 3
Posted: December 13 2005 at 9:25am | IP Logged Quote diego

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 View diego's Profile Search for other posts by diego
 
support
Administrator
Administrator


Joined: January 26 2005
Location: United States
Posts: 1666
Posted: December 13 2005 at 11:54am | IP Logged Quote support

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 View support's Profile Search for other posts by support Visit support's Homepage
 
diego
Intermediate
Intermediate


Joined: December 13 2005
Location: United States
Posts: 3
Posted: December 13 2005 at 2:01pm | IP Logged Quote diego

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 View diego's Profile Search for other posts by diego
 
support
Administrator
Administrator


Joined: January 26 2005
Location: United States
Posts: 1666
Posted: December 13 2005 at 3:35pm | IP Logged Quote support

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 View support's Profile Search for other posts by support Visit support's Homepage
 
diego
Intermediate
Intermediate


Joined: December 13 2005
Location: United States
Posts: 3
Posted: December 13 2005 at 4:10pm | IP Logged Quote diego

yes, option #1 worked.
Thanks!
I will test it properly now.
Back to Top View diego's Profile Search for other posts by diego
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum






Contact LanScape Hear what the Lawyers have to say How youm may use this site Read your privacy rights