Re: Using fork() and pthread() OR how to link against cygwin?

2014-07-11 Thread Christopher Faylor
On Fri, Jul 11, 2014 at 10:27:00AM -0500, Ismael Farfán wrote: >Hello list > >I've been searching allover the internet for "fork gcc cygwin linker" >and stuff like that without much look :( > >In my test I use pthreads, fork, waitpid, random and other POSIX >stuff, so the linker returns "LNK2019 un

Using fork() and pthread() OR how to link against cygwin?

2014-07-11 Thread Ismael Farfán
Hello list I've been searching allover the internet for "fork gcc cygwin linker" and stuff like that without much look :( In my test I use pthreads, fork, waitpid, random and other POSIX stuff, so the linker returns "LNK2019 unresolved external symbol..." What do I have to pass the compiler to g

Re: How to link with third party libraries using gcc

2007-06-29 Thread Larry Hall (Cygwin)
Bob McConnell wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Larry Hall (Cygwin) Sent: Friday, June 29, 2007 2:37 PM To: cygwin@cygwin.com Subject: Re: How to link with third party libraries using gcc Bob McConnell wrote: Whether the

Re: How to link with third party libraries using gcc

2007-06-29 Thread Christopher Faylor
On Fri, Jun 29, 2007 at 03:31:14PM -0400, Bob McConnell wrote: >I have attempted to go the other way, with no success. I tried to use >Cygwin B.20 to write some MS-Windows services a few years ago. One was a >simple TCP/IP socket proxy, and I never could get it to talk with the >Service Control Man

RE: How to link with third party libraries using gcc

2007-06-29 Thread Bob McConnell
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Larry Hall (Cygwin) > Sent: Friday, June 29, 2007 2:37 PM > To: cygwin@cygwin.com > Subject: Re: How to link with third party libraries using gcc > > Bob McConnell wrote: &g

Re: How to link with third party libraries using gcc

2007-06-29 Thread Larry Hall (Cygwin)
Bob McConnell wrote: Whether the libraries are linked dynamic or static is irrelevant here. The Windows libraries are stored in a different object format than the Unix and Cygwin libraries, and probably have different calling The format of Windows and Cygwin libraries are the same. conv

RE: How to link with third party libraries using gcc

2007-06-29 Thread Bob McConnell
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of km4hr > Sent: Friday, June 29, 2007 11:19 AM > To: cygwin@cygwin.com > Subject: RE: How to link with third party libraries using gcc > > > Dave, > > The librar

RE: How to link with third party libraries using gcc

2007-06-29 Thread Dave Korn
On 29 June 2007 16:19, km4hr wrote: > Dave, > > The libraries I'm dealing with provide an C programming interface to an > industrial control system. The system is a Fisher DCS (distributed control > system). The DCS contains thousands of temperatures, pressures, flowrates, > etc from processes

RE: How to link with third party libraries using gcc

2007-06-29 Thread km4hr
rogram running on your unix box? > Because that is equivalent to what you are trying to do. > > cheers, > DaveK > -- > Can't think of a witty .sigline today > > > -- > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Problem report

RE: How to link with third party libraries using gcc

2007-06-29 Thread km4hr
thout any of this complication. > > What exactly are these libraries, what is the product that they're part > of, > and what is the /actual/ goal you're trying to get your program to > achieve? > > > cheers, > DaveK > -- > Can't think of a witty .sigline

RE: How to link with third party libraries using gcc

2007-06-29 Thread Dave Korn
On 29 June 2007 15:26, km4hr wrote: > computer. I have no idea how cygwin does that. But with all the complex > obstacles that the cygwin developers have obviously overcome it's puzzling > to me why something as seemingly ordinary as Windows libraries is so > mystifying. Because they are *win

Re: How to link with third party libraries using gcc

2007-06-29 Thread km4hr
ve been told the instructions in the cygwin user's guide make no sense. Then I'm offered several opinions about what I should do. It makes me wonder how Windows' own programming tools are able to link with their own libraries if the standards are so vague and haphazard. I guess I

Re: How to link with third party libraries using gcc

2007-06-28 Thread Larry Hall (Cygwin)
km4hr wrote: Well, I think I'm about at the end of my road. My purpose for trying cygwin was to see if it could insulate me from having to learn to program on Windows. But if I've got to go to MSNBC (or whatever) or google the internet to figure out the internals of Windows then that defeats my p

RE: How to link with third party libraries using gcc

2007-06-28 Thread Dave Korn
On 28 June 2007 19:53, km4hr wrote: > Well, I think I'm about at the end of my road. My purpose for trying cygwin > was to see if it could insulate me from having to learn to program on > Windows. But if I've got to go to MSNBC (or whatever) or google the internet > to figure out the internals of

Re: How to link with third party libraries using gcc

2007-06-28 Thread km4hr
nc. (508) 893-9779 - RFK Office > 216 Dalton Rd. (508) 893-9889 - FAX > Holliston, MA 01746 > > _________ > > A: Yes. > > Q: Are you sure? > >> A: Because it reverse

Re: How to link with third party libraries using gcc

2007-06-28 Thread Brian Dessent
km4hr wrote: > I got exactly the same errors as I did with the ".lib" files included. > Apparently gcc has no idea what the ".lib" files are. No, it would have said "unable to find library1.lib" if that was the case. > Since I have no comprehesion of "decorations", "toolchains", and "calling > c

Re: How to link with third party libraries using gcc

2007-06-28 Thread Christopher Faylor
On Thu, Jun 28, 2007 at 11:22:24AM -0400, Larry Hall (Cygwin) wrote: > Not at all. But you need to learn a little bit about the platform you're > working with before things will make some sense to you. What is this "learn" thing of which you speak? Why can't this be more like a toaster? I only

Re: How to link with third party libraries using gcc

2007-06-28 Thread Larry Hall (Cygwin)
km4hr wrote: Brian, It sounds like the solution could range from something as simple as including the ".lib" files on the gcc command line on up to complicated stuff I've never heard of like "decorations", "toolchains", and "calling conventions". I tried the simple suggestion. I copied the ".li

Re: How to link with third party libraries using gcc

2007-06-28 Thread km4hr
alking about. Unfortunately I'm still completely in the dark. Brian Dessent wrote: > > km4hr wrote: > >> I thought Windows shared libraries were indentified by a ".dll" >> extension. >> However I have a commercial product installed that has a C pro

Re: How to link with third party libraries using gcc

2007-06-27 Thread Brian Dessent
km4hr wrote: > I thought Windows shared libraries were indentified by a ".dll" extension. > However I have a commercial product installed that has a C programming > interface. It's libraries have a ".lib" extension. I am totally lost as to > how to link my pr

Re: How to link with third party libraries using gcc

2007-06-27 Thread Larry Hall (Cygwin)
sion. However I have a commercial product installed that has a C programming interface. It's libraries have a ".lib" extension. I am totally lost as to how to link my program to these files. The Cygwin User's Guide contains an extremely brief section on linking against DLL's

How to link with third party libraries using gcc

2007-06-27 Thread km4hr
ve a commercial product installed that has a C programming interface. It's libraries have a ".lib" extension. I am totally lost as to how to link my program to these files. The Cygwin User's Guide contains an extremely brief section on linking against DLL's (section 4.3.

RE: How to link

2006-05-28 Thread Dave Korn
On 27 May 2006 04:17, TmX wrote: > I got a simple Winsock program & would like to compile it. The libwsock32.a > is in \lib\32api\ > > What's the parameter given to GCC so it links the program with the library > in C:\cygwin\lib\w32api ? "-lwsock32" should be all you need; the default linker s

How to link

2006-05-26 Thread TmX
My Cygwin dir is C:\cygwin I got a simple Winsock program & would like to compile it. The libwsock32.a is in \lib\32api\ What's the parameter given to GCC so it links the program with the library in C:\cygwin\lib\w32api ? -- View this message in context: http://www.nabble.com/Ho

Re: how to link without libutil.so? [repost]

2004-09-03 Thread Andrew Schulman
> "the link still fails" provides almost zero useful information. True. > Since Corinna went to some effort to add libutil functionality to the > cygwin DLL a while ago and since I can't see any functions in libutil.so > which are missing from cygwin1.dll, I don't see why this didn't work. Okay,

Re: how to link without libutil.so? [repost]

2004-09-03 Thread Christopher Faylor
On Fri, Sep 03, 2004 at 11:18:06PM -0400, Andrew Schulman wrote: >>>/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld: >>>cannot find -lutil >> >>As you noted, the file doesn't exist in the cygwin distribution. It's >>possible that you could just get by with removing it from

Re: how to link without libutil.so? [repost]

2004-09-03 Thread Andrew Schulman
>>/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld: >>cannot find -lutil > > As you noted, the file doesn't exist in the cygwin distribution. It's > possible that you could just get by with removing it from the link line > entirely since it looks like most of the functions

Re: how to link without libutil.so? [repost]

2004-09-03 Thread Christopher Faylor
On Fri, Sep 03, 2004 at 10:14:43PM -0400, Andrew Schulman wrote: >I'm trying to build Unison version 2.9.99.??Compilation?succeeds,?but? >the link step fails with > >/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld: >cannot find -lutil > >after running a gcc command that inc

how to link without libutil.so? [repost]

2004-09-03 Thread Andrew Schulman
I'm trying to build Unison version 2.9.99.  Compilation succeeds, but  the link step fails with /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld: cannot find -lutil after running a gcc command that includes '-lutil'.  I've searched the  Cygwin packages, and it does seem th

Re: How to link the following library under Cygwin?

2002-12-21 Thread Andrew Markebo
/ Elfyn McBratney <[EMAIL PROTECTED]> wrote: | Try this: > | $ gcc -o test -L. libmetis.a initialize.c > | You need to include the static archive into your image. I'm pretty sure the -l{} |only applies to shared libraries. Just a short note, more that putting the lib at the end, -lmetis is not

Re: How to link the following library under cygwin?

2002-12-20 Thread Christopher Faylor
On Fri, Dec 20, 2002 at 03:00:13PM -0800, Elfyn McBratney wrote: >Try this: > > $ gcc -o test -L. libmetis.a initialize.c > >You need to include the static archive into your image. I'm pretty sure the -l{} only >applies to shared libraries. Close. gcc -o test initialize.c libmetis.a Th

Re: How to link the following library under Cygwin?

2002-12-20 Thread Elfyn McBratney
Try this: $ gcc -o test -L. libmetis.a initialize.c You need to include the static archive into your image. I'm pretty sure the -l{} only applies to shared libraries. Elfyn [EMAIL PROTECTED] --- Zhaosong Lu <[EMAIL PROTECTED]> wrote: >Dear all, > >I dowload one graph partition package calle

How to link the following library under Cygwin?

2002-12-20 Thread Zhaosong Lu
Dear all, I dowload one graph partition package called "metis" and build it into "libmetis.a". Then I write one file "initialize.c" which calls one function 'METIS_NodeND' inside from the package "metis". After compilation and linking them under Cygwin/xFree86 as follows: gcc -o test initiali

Re: [REALLY OT] RE: 1.3.12-2 how to link with MS Platform SDK

2002-10-11 Thread [EMAIL PROTECTED]
ng with. Larry Original Message: - From: [EMAIL PROTECTED] Date: Fri, 11 Oct 2002 11:10:38 -0400 To: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: [REALLY OT] RE: 1.3.12-2 how to link with MS Platform SDK OK, I found my way around this problem with libraries. Just linke

RE: 1.3.12-2 how to link with MS Platform SDK

2002-10-10 Thread [EMAIL PROTECTED]
ig thank you to Bill. Good luck, Larry Original Message: - From: [EMAIL PROTECTED] Date: Thu, 10 Oct 2002 15:58:57 -0400 To: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: 1.3.12-2 how to link with MS Platform SDK Thanks, God. Somebody knows what I'm talking about ! Here i

Re: [REALLY OT] RE: 1.3.12-2 how to link with MS Platform SDK

2002-10-10 Thread [EMAIL PROTECTED]
e: Thu, 10 Oct 2002 16:15:34 -0400 To: [EMAIL PROTECTED] Subject: Re: [REALLY OT] RE: 1.3.12-2 how to link with MS Platform SDK On Thu, Oct 10, 2002 at 04:07:29PM -0400, Igor Pechtchanski wrote: >On Thu, 10 Oct 2002 [EMAIL PROTECTED] wrote: > >> Thanks, God. >> Somebody knows what

Re: [REALLY OT] RE: 1.3.12-2 how to link with MS Platform SDK

2002-10-10 Thread Christopher Faylor
On Thu, Oct 10, 2002 at 04:07:29PM -0400, Igor Pechtchanski wrote: >On Thu, 10 Oct 2002 [EMAIL PROTECTED] wrote: > >> Thanks, God. >> Somebody knows what I'm talking about ! >> [snip] >> >> > Larry > >I'm sure Larry would appreciate this new religious following :-D Oh great. Now the church will

[OT] RE: 1.3.12-2 how to link with MS Platform SDK

2002-10-10 Thread Igor Pechtchanski
On Thu, 10 Oct 2002 [EMAIL PROTECTED] wrote: > Thanks, God. > Somebody knows what I'm talking about ! > [snip] > > > Larry I'm sure Larry would appreciate this new religious following :-D Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_

RE: 1.3.12-2 how to link with MS Platform SDK

2002-10-10 Thread nickolai . bogdatov
| | To: Nickolai G. Bogdatov/EMPL/FL/Verizon@VZNotes, [EMAIL PROTECTED] | | cc: | | S

RE: 1.3.12-2 how to link with MS Platform SDK

2002-10-10 Thread [EMAIL PROTECTED]
is likely the problem. Larry Original Message: - From: [EMAIL PROTECTED] Date: Thu, 10 Oct 2002 15:08:57 -0400 To: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: 1.3.12-2 how to link with MS Platform SDK During linking it gives me "enr

RE: 1.3.12-2 how to link with MS Platform SDK

2002-10-10 Thread nickolai . bogdatov
During linking it gives me "enresolved external" Regards, Nickolai Bogdatov -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/

RE: 1.3.12-2 how to link with MS Platform SDK

2002-10-10 Thread [EMAIL PROTECTED]
What happens when you link with DhcpCSvc.Lib from the MS Platform SDK? Larry Original Message: - From: [EMAIL PROTECTED] Date: Thu, 10 Oct 2002 12:03:51 -0400 To: [EMAIL PROTECTED] Subject: 1.3.12-2 how to link with MS Platform SDK Hello, My application controls MS DHCP

1.3.12-2 how to link with MS Platform SDK

2002-10-10 Thread nickolai . bogdatov
Hello, My application controls MS DHCP Server and because of that needs to use some calls from MS Platform SDK. For example I have to call "DhcpCApiInitialize()" function. I do #include // dhcp client options api Compilation goes no problem. But when I'm trying to link it gives me a erro

Re: how to link CYGWIN cout dll instead WIN32 cout dll using MSVC

2001-12-13 Thread Paul G.
On 12 Dec 2001 at 21:05, TC Shen wrote: > Hello: > I am not sure whether this is possible or not. > > I just need to tell MSVC to link with CYGWIN dll (with iostream) > instead of the one came with MSVC. Can I do this? How? Seriously doubt it as the two are largely incompatible.

how to link CYGWIN cout dll instead WIN32 cout dll using MSVC

2001-12-12 Thread TC Shen
Hello: I am not sure whether this is possible or not. I just need to tell MSVC to link with CYGWIN dll (with iostream) instead of the one came with MSVC. Can I do this? How? thank you tcs -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cy