Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6118551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:26:59+00:00 2026-05-23T15:26:59+00:00

I am running a Eclipse for C/C++ using cygwin GCC. I need to get

  • 0

I am running a Eclipse for C/C++ using cygwin GCC. I need to get the library path of “libws2_32.a”, which is in C:\cygwin\lib\w32api for me in windows. However I do not understand how this is translated into a cygwin-path.

I’ve tried stuff like:

/cygdrive/c/cygwin/lib/w32api
/lib/w32api
/usr/lib/w32api

Any ideas?

EDIT: update

Here’s the make Eclipse log used for building, if it helps:

make all 
Building target: Filesharing_core.dll
Invoking: Cygwin C Linker
gcc -L/cygdrive/c/cygwin/lib/w32api -shared -o"Filesharing_core.dll"  ./src/test.o   -llibws2_32.a
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: cannot find -llibws2_32.a
collect2: ld returned 1 exit status
make: *** [Filesharing_core.dll] Error 1
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:27:00+00:00Added an answer on May 23, 2026 at 3:27 pm

    It’s not a problem with the path; it’s a problem with the name of the library (the -l option).
    Where you have entered libws2_32.a, instead enter ws2_32.
    See the GCC manual for how the -l option works.

    Generally, when asking for help with programming, don’t describe, but show. Don’t describe what you’re doing; don’t describe what you think the error is. Instead, show exactly what you’re doing, show the exact code (or a cut down version that exhibits the same problem), and show the exact error message.
    This way others don’t have to guess as to what’s wrong, and you are more likely to receive an answer right away that solves your problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Eclipse 3.6.2, current version of CDT, current Cygwin tools and C++ (GCC) compiler.
I'm using Eclipse 3.4 with WTP 3.0.2 and running a fairly large Dynamic Web
Eclipse Helios periodically starts running a job which displays Computing additional info. During this
I am running servlet file in eclipse using tomcat6. When running my file it
I'm running Eclipse on Windows 7 (also happens on XP). As you see below,
I'm debugging an application on a remote server running JBoss using Eclipse. My particular
I'm running eclipse on Ubuntu using a g++ compiler and I'm trying to run
When I am running the following code using Eclipse and NetBeans 6.8. I want
Have a basic question on running PHP applications using Eclipse PHP on Ubuntu. I
I have a running Java GWT application, that I can compile using Eclipse. Now

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.