The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Error when compile httpd 2.2.8 on AIX 5.2 aldowsary AIX 7 02-13-2008 03:21 PM
C compile error kuampang High Level Programming 3 11-29-2006 09:30 PM
compile error message putput High Level Programming 4 10-04-2006 01:43 AM
compile error while using dlopen shriashishpatil High Level Programming 5 06-29-2006 12:01 AM
Error in compile C by gcc zico High Level Programming 4 11-11-2003 11:45 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 06-23-2006
Registered User
 

Join Date: Jun 2006
Location: Malaysia
Posts: 14
Compile error

Dear All

I have a program writen in C and test in Unix. Now, I am try to run this program in windows 2000. I am receiving an error [B]_getopt is not define[/b]. I will appreciate if any one can help explain to me why this problem is hapening and to slove this problem.

Thank you
Reply With Quote
Forum Sponsor
  #2  
Old 06-23-2006
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,326
Basic question... you have recompiled the code before running in Windows haven't you? Also, you may not be having the libraries that implement the 'getopt' function in Windows.
Reply With Quote
  #3  
Old 06-23-2006
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,469
Maybe you will find this useful:

http://gnuwin32.sourceforge.net/packages/glibc.htm
Reply With Quote
  #4  
Old 06-23-2006
Registered User
 

Join Date: Feb 2006
Posts: 35
Hi ,
Can you please add code snippet for the same

Thanks
Naren
Reply With Quote
  #5  
Old 06-24-2006
Registered User
 

Join Date: Jun 2006
Location: Malaysia
Posts: 14
Dear

I do have geopt library in my window. But it seem it can not find it. When I execute the program, it will produce error that it can't find getopt in any directory. One thing I would like to know geopt class is for unix only or it can be used with windows?

Thank you




Quote:
Originally Posted by blowtorch
Basic question... you have recompiled the code before running in Windows haven't you? Also, you may not be having the libraries that implement the 'getopt' function in Windows.
Reply With Quote
  #6  
Old 06-24-2006
Registered User
 

Join Date: Jun 2006
Location: Malaysia
Posts: 14
Dear Naren

Can you elaborate what you mean by code snippet? where I can get that code? What that code can do?

Thank you

Last edited by coulio; 06-24-2006 at 02:41 AM.
Reply With Quote
  #7  
Old 06-24-2006
Registered User
 

Join Date: Feb 2006
Posts: 35
Hi coulio,

by code snippet i mean copy paste part of your code , whcih uses getopt ,

so that we can analyse how it is used .

we can plan next

can you check this link where there is link for getopt foe windows


http://www.codeproject.com/cpp/xgetopt.asp

Thanks
naren
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:03 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0