dev-cpp-users Mailing List for Dev-C++
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(15) |
Oct
(115) |
Nov
(154) |
Dec
(258) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(377) |
Feb
(260) |
Mar
(249) |
Apr
(188) |
May
(152) |
Jun
(150) |
Jul
(195) |
Aug
(202) |
Sep
(200) |
Oct
(286) |
Nov
(242) |
Dec
(165) |
| 2002 |
Jan
(245) |
Feb
(241) |
Mar
(239) |
Apr
(346) |
May
(406) |
Jun
(369) |
Jul
(418) |
Aug
(357) |
Sep
(362) |
Oct
(597) |
Nov
(455) |
Dec
(344) |
| 2003 |
Jan
(446) |
Feb
(397) |
Mar
(515) |
Apr
(524) |
May
(377) |
Jun
(387) |
Jul
(532) |
Aug
(364) |
Sep
(294) |
Oct
(352) |
Nov
(295) |
Dec
(327) |
| 2004 |
Jan
(416) |
Feb
(318) |
Mar
(324) |
Apr
(249) |
May
(259) |
Jun
(218) |
Jul
(212) |
Aug
(259) |
Sep
(158) |
Oct
(162) |
Nov
(214) |
Dec
(169) |
| 2005 |
Jan
(111) |
Feb
(165) |
Mar
(199) |
Apr
(147) |
May
(131) |
Jun
(163) |
Jul
(235) |
Aug
(136) |
Sep
(84) |
Oct
(88) |
Nov
(113) |
Dec
(100) |
| 2006 |
Jan
(85) |
Feb
(119) |
Mar
(33) |
Apr
(31) |
May
(56) |
Jun
(68) |
Jul
(18) |
Aug
(62) |
Sep
(33) |
Oct
(55) |
Nov
(19) |
Dec
(40) |
| 2007 |
Jan
(22) |
Feb
(49) |
Mar
(34) |
Apr
(51) |
May
(66) |
Jun
(43) |
Jul
(116) |
Aug
(57) |
Sep
(70) |
Oct
(69) |
Nov
(97) |
Dec
(86) |
| 2008 |
Jan
(32) |
Feb
(47) |
Mar
(106) |
Apr
(67) |
May
(28) |
Jun
(39) |
Jul
(31) |
Aug
(25) |
Sep
(18) |
Oct
(25) |
Nov
(5) |
Dec
(21) |
| 2009 |
Jan
(33) |
Feb
(27) |
Mar
(27) |
Apr
(22) |
May
(22) |
Jun
(10) |
Jul
(17) |
Aug
(9) |
Sep
(21) |
Oct
(13) |
Nov
(4) |
Dec
(11) |
| 2010 |
Jan
(10) |
Feb
(8) |
Mar
(4) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(8) |
Oct
(26) |
Nov
(9) |
Dec
(1) |
| 2011 |
Jan
(21) |
Feb
(16) |
Mar
(4) |
Apr
(19) |
May
(26) |
Jun
(9) |
Jul
(6) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
| 2012 |
Jan
(4) |
Feb
(7) |
Mar
(4) |
Apr
|
May
(1) |
Jun
(10) |
Jul
(1) |
Aug
(1) |
Sep
(18) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
| 2013 |
Jan
(4) |
Feb
(2) |
Mar
(15) |
Apr
(6) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
|
| 2014 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(4) |
| 2015 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(9) |
Nov
(35) |
Dec
(6) |
| 2016 |
Jan
(7) |
Feb
(10) |
Mar
(10) |
Apr
(9) |
May
(13) |
Jun
(9) |
Jul
(1) |
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
|
1
(11) |
2
(8) |
3
(7) |
|
4
(24) |
5
(11) |
6
(5) |
7
(5) |
8
(14) |
9
(20) |
10
(16) |
|
11
(11) |
12
(9) |
13
(14) |
14
(15) |
15
(19) |
16
(25) |
17
(13) |
|
18
(6) |
19
(17) |
20
(10) |
21
(14) |
22
(23) |
23
(10) |
24
|
|
25
|
26
(6) |
27
(32) |
28
(15) |
29
(7) |
30
(13) |
31
(36) |
|
From: Reid T. <rei...@at...> - 2004-01-18 18:04:12
|
is this the example you speak of? If so, cygwin works fine with it.
#include <stdio.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <netinet/in.h>
int
make_socket (uint16_t port)
{
int sock;
struct sockaddr_in name;
/* Create the socket. */
sock = socket (PF_INET, SOCK_STREAM, 0);
if (sock < 0)
{
perror ("socket");
exit (EXIT_FAILURE);
}
/* Give the socket a name. */
name.sin_family = AF_INET;
name.sin_port = htons (port);
name.sin_addr.s_addr = htonl (INADDR_ANY);
if (bind (sock, (struct sockaddr *) &name, sizeof (name)) < 0)
{
perror ("bind");
exit (EXIT_FAILURE);
}
return sock;
}
----------------------------
Compile and run this. You then have 20 seconds ( sleep(20)) when you
can run 'netstat -an | grep 54000' which should show the socket
listening on 54000.
TCP 0.0.0.0:54000 0.0.0.0:0 LISTENING
------
#include <stdio.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <netinet/in.h>
int make_socket(uint16_t port);
int main(void)
{
int socka = 0;
int mysock = 0;
mysock = make_socket(54000);
printf("mysock[%d]\n", mysock);
return(0);
}
int make_socket(uint16_t port)
{
int sock;
struct sockaddr_in name; /* Create the socket. */
sock = socket(PF_INET, SOCK_STREAM, 0);
if (sock < 0)
{
perror("socket");
exit(EXIT_FAILURE);
} /* Give the socket a name. */
name.sin_family = AF_INET;
name.sin_port = htons(port);
name.sin_addr.s_addr = htonl(INADDR_ANY);
if (bind(sock, (struct sockaddr *) &name, sizeof(name)) < 0)
{
perror("bind");
exit(EXIT_FAILURE);
}
sleep(20);
return sock;
}
* William wrote:
> Thanks to Reid.
>
> Now I have a real 'question' ... or can it be a challenge to implementors.
>
> The most recent Dev CPP help for C (which appears to be GNU GCC
> documentaion) shows good examples for inet.
>
> Cygwin and mingw don't appear to implement this functionality (so far...
> still looking).
>
> The 'challenge' is to inentify the library (.a file) that each header (.h
> file) belongs too and what is and not-quite implemented.
>
> Example; SIGKILL isn't implemented in mingw. No big deal, use SIGTERM (may
> be) ... consistiently there is bulk documetation on either std *NIX and GNU
> stuff. the Most important thing is (to me) the differences and
> alternatives.
>
> My progress so far is that mingw and cygwin don't appear to have "inet"
> functionality except for the mingw winiwn.h interface. Still investigating.
>
> As my target it Windows, I think a networking module might correctly be
> platform dependant and would like to find the documents for the "wininet.h"
> interface.
>
>
> On a minor point -- is the dev Pascal project still running ... ?
>
> Thanks for the time.
>
> Aloha,
> w
>
>
>
> ----- Original Message -----
> r> From: Reid Thompson
> r> Sent: Sunday, January 18, 2004 8:26 AM
> r>
> r> look at/download cygwin www.cygwin.com
> r>
> r> * William wrote:
>
>>I want the 'equivalent' or either
>>
>> <netinet/in.h> ... or ...
>> <in.h>
>>
>>I have found <wininet.h> in the folder. Can someone point me to
>>documentation on this file please ? (Oh yes the context is from a gawk
>>project. )
>
>
>
>
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: * W. <wi...@fu...> - 2004-01-18 14:07:57
|
Thanks to Reid.
Now I have a real 'question' ... or can it be a challenge to implementors.
The most recent Dev CPP help for C (which appears to be GNU GCC
documentaion) shows good examples for inet.
Cygwin and mingw don't appear to implement this functionality (so far...
still looking).
The 'challenge' is to inentify the library (.a file) that each header (.h
file) belongs too and what is and not-quite implemented.
Example; SIGKILL isn't implemented in mingw. No big deal, use SIGTERM (may
be) ... consistiently there is bulk documetation on either std *NIX and GNU
stuff. the Most important thing is (to me) the differences and
alternatives.
My progress so far is that mingw and cygwin don't appear to have "inet"
functionality except for the mingw winiwn.h interface. Still investigating.
As my target it Windows, I think a networking module might correctly be
platform dependant and would like to find the documents for the "wininet.h"
interface.
On a minor point -- is the dev Pascal project still running ... ?
Thanks for the time.
Aloha,
w
----- Original Message -----
r> From: Reid Thompson
r> Sent: Sunday, January 18, 2004 8:26 AM
r>
r> look at/download cygwin www.cygwin.com
r>
r> * William wrote:
> I want the 'equivalent' or either
>
> <netinet/in.h> ... or ...
> <in.h>
>
> I have found <wininet.h> in the folder. Can someone point me to
> documentation on this file please ? (Oh yes the context is from a gawk
> project. )
|
|
From: <or...@vp...> - 2004-01-18 08:05:29
|
Noorez Kassam wrote: > What is the function to generate a random number? rand() Include stdlib.h to use it. You might also want to seed it before use: srand(seed) with a number (GetTickCount() or something similar). rand() gives you a number between 0 and RAND_MAX. To get a number between 0 an 10, you can use formulas like this: rand()/(RAND_MAX/10); -- Greetings, Balázs |
|
From: Alex M. <dev...@ho...> - 2004-01-18 04:12:57
|
Fixed my own error by following the instructions at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/userex/cookbook.asp a little more closely. _________________________________________________________________ Find high-speed net deals comparison-shop your local providers here. https://broadband.msn.com |
|
From: Alex M. <dev...@ho...> - 2004-01-18 03:30:19
|
I am trying to make a tutorial program have the look of Windows XP. I found this link: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/userex/cookbook.asp it describes using manifests and linking to ComCtl32.lib, using manifests, and doing other things. I have tried to get it working but can't. Everything I try takes a previously working program and turns its client area blank. How do you use manifests in dev-cpp? What is the "Support Window XP Themes" check box supposed to do? For me this check box turns a previously working foosyerdoos.com tutorial program to blank. any help would be appreciated. -alex _________________________________________________________________ Learn how to choose, serve, and enjoy wine at Wine @ MSN. http://wine.msn.com/ |
|
From: Maya <Esc...@ne...> - 2004-01-18 00:09:28
|
I know, I know, this is way out of topic. If it wasn't for the fact that
I am compiling a FLTK program, it would be completely out of line to ask
this question here. I hope I am not offending anyone.
But just in case. I am so very sorry if I caused you any discomfort, but
if you direct me to the right group I will not bother you again.
OK, now that the protocol is out of the way, her is my problem. First!
some info:
compiler = g++ 3.3.1
target = i686-pc-cywing
FLTK -v = 1.4.x
Now, here is the Makefile:
# WIMM's Makefile
# Compiler
CPP = g++.exe
WINDRES = windres.exe
RES = wimm_private.res
#Flags
CPPFLAGS = -Wctor-dtor-privacy
#Excecutable name
BIN = WIMM.exe
LINKOBJ = main.o $(RES)
#Objects to be created
OBJ = main.o $(RES)
#Libraries to be included
LIBS = -L"c:/cywing/lib" -lfltk -lole32 -luuid -lcomctl32 \
-lwsock32 -lm -lgdi32 -mwindows
#List of directories to be search for header files
INCS = -I"/usr/include"
CXXINCS = -I"/usr/include/c++" \
-I"/usr/include/c++/mingw32" \
-I"/usr/include/c++/backward" \
-I"/usr/include/include"
#
CXXFLAGS = $(CXXINCS)
CFLAGS = $(INCS)-DWIN32
$(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -o $(OBJ) $(LIBS)
main.o: main.cpp
$(CPP) $(CFLAGS) $(CPPFLAGS) -c main.cpp -o main.o $(CXXFLAGS)
.PHONY: clean
clean:
rm -f $(OBJ) $(BIN)
After typing 'make' I get an error message that reads:
main.o: file not recognized: File truncated
collect2: ld returned 1 exit status
make: *** [WIMM.exe] Error 1
What am I doing wrong? and how do I fix the problem?
Please note that I am, by no means and I mean BY NO MEANS a GNU make
expert, so be gentle.
TIA
--
FYI
http://www.astro.umd.edu/~marshall/abbrev.html
E-Mail Policy
http://www.vif.com/users/escalante/Email_Policy.html
* You cannot exercise your power to a point of humiliation.
- Jean Chretien
* The media's the most powerful entity on earth. They have the
power to make the innocent guilty and to make the guilty
innocent, and that's power.
- Malcom X
* "Innocent until proven guilty", no... not in Canada!!
|