The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 06:21 PM
C compile error kuampang High Level Programming 3 11-30-2006 12:30 AM
compile error message putput High Level Programming 4 10-04-2006 04:43 AM
compile error while using dlopen shriashishpatil High Level Programming 5 06-29-2006 03:01 AM
Error in compile C by gcc zico High Level Programming 4 11-12-2003 02:45 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-23-2006
coulio coulio is offline
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
  #2 (permalink)  
Old 06-23-2006
blowtorch's Avatar
blowtorch blowtorch is offline Forum Advisor  
Supporter
  
 

Join Date: Dec 2004
Location: Singapore
Posts: 2,350
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.
  #3 (permalink)  
Old 06-23-2006
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

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

http://gnuwin32.sourceforge.net/packages/glibc.htm
  #4 (permalink)  
Old 06-23-2006
naren_chella naren_chella is offline
Registered User
  
 

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

Thanks
Naren
  #5 (permalink)  
Old 06-24-2006
coulio coulio is offline
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.
  #6 (permalink)  
Old 06-24-2006
coulio coulio is offline
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 05:41 AM..
  #7 (permalink)  
Old 06-24-2006
naren_chella naren_chella is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 36
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
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:18 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0