Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » CDT » VS user looking to learn Eclipse, some basic questions
VS user looking to learn Eclipse, some basic questions [message #694092] Thu, 07 July 2011 15:22
johan.jons is currently offline johan.jons
Messages: 1
Registered: July 2011
Junior Member


I've been using VS2008/2010 for a while and I'm going to learn using Eclipse for C/C++ development (mainly C). I'm using Cygwin C compiler.

I am abit confused about libraries and includes though.

1) How do you properly include winsock2.h for example? I've tried this:
#ifndef CONFIG_H_
#define CONFIG_H_


/*  Windows-Build   */
#if defined(WIN32) || defined(_WIN32)
#include <winsock2.h>
#endif

SOCKET sock;

#endif /* CONFIG_H_ */


But the compiler dosn't recognise SOCKET. Do you have to manually add the full path to winsock2 somewhere?

2) What about ws2_32.lib? Where do you include that in Eclipse? Do you have to add a path as well?

3) Having used VS mostly I'm new to makefiles. How do you include custom makefiles? Is there a good guide for starting with makefiles?

4) Is there a intellisense like in VS?

That's what I can figure out right now. Thanks!
Previous Topic:CDT parser and Preprocessor Directives
Next Topic:How to Add a Library to a CDT Template Project
Goto Forum:
  


Current Time: Sun May 19 22:56:25 EDT 2013

Powered by FUDForum. Page generated in 0.01526 seconds