LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 06-15-2004, 04:20 AM   #1
stiphon
LQ Newbie
 
Registered: May 2004
Location: Beijing, China
Posts: 4

Rep: Reputation: 0
How to use the head file of GCC in VC


Hi, everyone

Now i want to compile the c++ files in the Windows XP which can compile in Linux SUSE. So i want to know How to use the head file of GCC in the Visual C++6?

such as the following files

#include <getopt.h>
#include <pthread.h>


thank you
 
Old 06-15-2004, 05:05 AM   #2
Mohsen
Member
 
Registered: Feb 2003
Location: Iran
Distribution: Solaris 10
Posts: 201

Rep: Reputation: 30
getopt has a cross-platform version written by IBM. So you can find it on the Internet.
But about pthread, I'm not sure that there would be some equivalents in Windows.
 
Old 06-15-2004, 05:54 AM   #3
joda
LQ Newbie
 
Registered: Jun 2003
Posts: 8

Rep: Reputation: 0
hey ...

depends on what you mean, the pthreads library will work on posix compatible platforms, windows is not one of them and it has its own set of thread tools. getopt is available on windows but its a little bit different, search on it on google.

note, you cannot just "cross-compile" you will need to work with ansi libraries and headers. this is a wide topic of its own. linux-posix system will in most cases be ok but not linux-windows.

by the way, take a look at cygwin or mingw for running native linux on the windows platform ... mingw links against the windows runtime libs!!!

hope this helps ...

- mike -

Last edited by joda; 06-15-2004 at 05:56 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to find the head file where a Constant was defined greghua Programming 1 08-12-2005 03:50 PM
gcc: ./remote-@REMOTE@.c: No such file or directory gcc: no input files pracslipkerm Linux - Newbie 3 06-15-2005 06:09 AM
Multi-monitor Issues on RH9, Geforce 4 Ti Dual Head + TNT2 Single Head the letter b Linux - Newbie 3 12-04-2004 11:23 PM
head file broblem phoenix_fei Programming 2 12-02-2004 05:56 AM
x86 Solaris 9 XSun and Matrox G550 dual-head... one head down, one to go. finegan Solaris / OpenSolaris 4 03-11-2003 12:39 PM


All times are GMT -5. The time now is 10:51 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration