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 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 05:43 AM
compile error while using dlopen shriashishpatil High Level Programming 5 06-29-2006 04: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 Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-24-2006
coulio coulio is offline
Registered User
  
 

Join Date: Jun 2006
Location: Malaysia
Posts: 14
Thank you Naren

I do not have my code here, next time I will take my code along with and copy & past for your view. This problem came out when I want to move my code from unix to window. The code tested in unix and work very well in unix but window have problem with getopt.

Thank you again



Quote:
Originally Posted by naren_chella
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
  #2 (permalink)  
Old 06-28-2006
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,960
Quote:
Originally Posted by coulio
Dear

I do have geopt library in my window. But it seem it can not find it.
What files do you have for getopt? Just the header file is not enough. Also, if you're using C++ files in your project, there may be name-mangling issues.

The source code at http://www.yics.org/ apparently incorporates a getopt implementation for windows if that turns out to be what you need.

Don't bother trying to use source from libc. It's a tangled web of spiders, trying to seperate one function from the rest is generally futile.
  #3 (permalink)  
Old 06-30-2006
coulio coulio is offline
Registered User
  
 

Join Date: Jun 2006
Location: Malaysia
Posts: 14
dear Blowtorch

Yes, the code was complied in unix environement before compiling in window. Now I want to compile in window. Any advice for me?

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.
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 10:16 PM.


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