Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Compile error

Posted on 1998-11-13
1
Medium Priority
?
378 Views
Last Modified: 2013-11-20
hai..

I've got problems on compiling my .dll program using Mic Visual C++. I've got this error:

error C2709: 'iaddr' uses undefined struct 'in_addr'
error C2709: 'local_addr' uses undefined struct 'sockaddr_in'
error C2146: missing ......and a few errors

I'm compiling nsapi program example which include netinet/in.h (UNIX environment), so i just delete/comment the statement. And in windows environment, it use winsock.h, am i correct?.

What are the solutions...do i need to link to any library file?

Thanks in advance,

Suhaimi
0
Comment
Question by:suhai
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
fstab earned 20 total points
ID: 1324624
Link with wsock32.lib
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question