PDA

Click to See Complete Forum and Search --> : Dev ++ and Sockets question...


The Duck
October 8th, 2004, 06:05 AM
I have been in the process of learning C++ and have stumbled upon a good tutorial that teaches the basics of socket programming with C++. Some of you might know what I'm talking about, it's Beej's guide. I have a problem though. My compiler is Dev ++ and I can't run the programs that use sockets because I need to link some kind of a file and #include <winsock.h>. Can someone help me out and tell me what file I need to link, and how to link it in Dev ++. The guide tells you that you can do it in the "Projects tab" but in dev++ it's greyed out for some reason...

Any help will be greatly appreciated!

Thanks in advance!

lepricaun
October 8th, 2004, 07:21 AM
it is greyed out because you are not using a project atm.
you have 2 possibilities to write a program in DEV-CPP, one is stand alone code and the other is via a project.

now when you go to file-->new-->project. you can start a new project and copy the code you have so far into this project. NOW you are able to use the options as given by Beej's guide.

The Duck
October 9th, 2004, 04:37 AM
Ah, yes, I feel so stupid for not realizing this simple solution, thank you very much!