Running C++ code in VC++.Net

  • Thread starter Thread starter Peter Krikelis
  • Start date Start date
P

Peter Krikelis

Hi,

I have a C++ code. I tried to open and run in in VC++.Net
and it gave me an error: fatal error C1083: Cannot open
include file: 'getopt.h': No such file or directory

Somehow it did not find the standard C++ library. And the
question is what do I need to do in order to run the C++
code in VC++.Net and get it working or can I do it at all.
What should I do with the not found getopt.h library?

Thatnks in advance,

Peter
 
Hello Peter,

Thanks for posting in the group.

Andrew is right. The error message has shown the reason of the problem.
VS.NET couldn't find that header file. It is not a standard header file
included in VS.NET. getopt is a function in Posix system. Andrew has
introduced a method. Here I'd like to introduce another MSDN artilce in
this area:
"UNIX Application Migration Guide"
http://msdn.microsoft.com/library/en-us/dnucmg/html/ucmglp.asp?frame=true

Does that answer your question?

Best regards,
Yanhong Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
!Content-Class: urn:content-classes:message
!From: "Peter Krikelis" <[email protected]>
!Sender: "Peter Krikelis" <[email protected]>
!Subject: Running C++ code in VC++.Net
!Date: Wed, 17 Sep 2003 06:00:19 -0700
!Lines: 15
!Message-ID: <[email protected]>
!MIME-Version: 1.0
!Content-Type: text/plain;
! charset="iso-8859-1"
!Content-Transfer-Encoding: 7bit
!X-Newsreader: Microsoft CDO for Windows 2000
!Thread-Index: AcN9G6V++s9J7Oo+Sp+Ng+L3wKjLMw==
!X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
!Newsgroups: microsoft.public.dotnet.languages.vc
!Path: cpmsftngxa06.phx.gbl
!Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vc:28395
!NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
!X-Tomcat-NG: microsoft.public.dotnet.languages.vc
!
!Hi,
!
!I have a C++ code. I tried to open and run in in VC++.Net
!and it gave me an error: fatal error C1083: Cannot open
!include file: 'getopt.h': No such file or directory
!
!Somehow it did not find the standard C++ library. And the
!question is what do I need to do in order to run the C++
!code in VC++.Net and get it working or can I do it at all.
!What should I do with the not found getopt.h library?
!
!Thatnks in advance,
!
!Peter
!
!
 
Back
Top