?
Solved

Compile error

Posted on 1998-11-13
1
Medium Priority
?
379 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
1 Comment
 
LVL 1

Accepted Solution

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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Screencast - Getting to Know the Pipeline
Suggested Courses

850 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