Solved

Compile error

Posted on 1998-11-13
1
376 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 10 total points
ID: 1324624
Link with wsock32.lib
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…

724 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