Solved

Compile error

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

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Process filename extension 3 157
Prevent this page from creating additional dialogs. 3 268
has77  challenge 9 68
noX challenge 17 77
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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 discusses moving either the default database or any database to a new volume.

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now