Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / September 2003

Tip: Looking for answers? Try searching our database.

Running C++ code in VC++.Net

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter Krikelis - 17 Sep 2003 14:00 GMT
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
Andrew Burlak - 17 Sep 2003 15:18 GMT
getopt.h is not a standard C++ header, it's a POSIX header.

To get it working you need an UNIX compatibility layer, such as Cygwin
(http://www.cygwin.com)

---
Andrew Burlak.

> Hi,
>
[quoted text clipped - 10 lines]
>
> Peter
Yan-Hong Huang[MSFT] - 18 Sep 2003 04:39 GMT
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

Signature

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" <pkrikelis@hotmail.com>
!Sender: "Peter Krikelis" <pkrikelis@hotmail.com>
!Subject: Running C++ code in VC++.Net
!Date: Wed, 17 Sep 2003 06:00:19 -0700
!Lines: 15
!Message-ID: <50c901c37d1b$a57e1b40$a501280a@phx.gbl>
!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
!
!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.