Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(371) |
Oct
(167) |
Nov
(412) |
Dec
(208) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(378) |
Feb
(302) |
Mar
(269) |
Apr
(296) |
May
(306) |
Jun
(381) |
Jul
(346) |
Aug
(315) |
Sep
(195) |
Oct
(216) |
Nov
(280) |
Dec
(227) |
2002 |
Jan
(309) |
Feb
(333) |
Mar
(328) |
Apr
(407) |
May
(517) |
Jun
(519) |
Jul
(400) |
Aug
(580) |
Sep
(1273) |
Oct
(984) |
Nov
(683) |
Dec
(538) |
2003 |
Jan
(578) |
Feb
(454) |
Mar
(312) |
Apr
(366) |
May
(505) |
Jun
(431) |
Jul
(415) |
Aug
(374) |
Sep
(470) |
Oct
(578) |
Nov
(372) |
Dec
(309) |
2004 |
Jan
(308) |
Feb
(247) |
Mar
(372) |
Apr
(413) |
May
(333) |
Jun
(323) |
Jul
(269) |
Aug
(239) |
Sep
(469) |
Oct
(383) |
Nov
(400) |
Dec
(332) |
2005 |
Jan
(411) |
Feb
(363) |
Mar
(346) |
Apr
(316) |
May
(275) |
Jun
(248) |
Jul
(396) |
Aug
(396) |
Sep
(279) |
Oct
(340) |
Nov
(319) |
Dec
(218) |
2006 |
Jan
(317) |
Feb
(263) |
Mar
(304) |
Apr
(296) |
May
(209) |
Jun
(349) |
Jul
(246) |
Aug
(198) |
Sep
(174) |
Oct
(138) |
Nov
(201) |
Dec
(270) |
2007 |
Jan
(223) |
Feb
(182) |
Mar
(350) |
Apr
(350) |
May
(259) |
Jun
(221) |
Jul
(299) |
Aug
(465) |
Sep
(356) |
Oct
(265) |
Nov
(417) |
Dec
(225) |
2008 |
Jan
(421) |
Feb
(327) |
Mar
(219) |
Apr
(389) |
May
(375) |
Jun
(262) |
Jul
(215) |
Aug
(289) |
Sep
(257) |
Oct
(383) |
Nov
(237) |
Dec
(209) |
2009 |
Jan
(232) |
Feb
(327) |
Mar
(306) |
Apr
(251) |
May
(146) |
Jun
(247) |
Jul
(302) |
Aug
(252) |
Sep
(263) |
Oct
(376) |
Nov
(270) |
Dec
(244) |
2010 |
Jan
(225) |
Feb
(184) |
Mar
(300) |
Apr
(290) |
May
(275) |
Jun
(535) |
Jul
(192) |
Aug
(237) |
Sep
(304) |
Oct
(142) |
Nov
(384) |
Dec
(186) |
2011 |
Jan
(305) |
Feb
(337) |
Mar
(331) |
Apr
(318) |
May
(306) |
Jun
(299) |
Jul
(205) |
Aug
(271) |
Sep
(232) |
Oct
(179) |
Nov
(252) |
Dec
(216) |
2012 |
Jan
(195) |
Feb
(268) |
Mar
(142) |
Apr
(226) |
May
(203) |
Jun
(132) |
Jul
(211) |
Aug
(429) |
Sep
(289) |
Oct
(291) |
Nov
(182) |
Dec
(188) |
2013 |
Jan
(205) |
Feb
(259) |
Mar
(224) |
Apr
(125) |
May
(295) |
Jun
(181) |
Jul
(209) |
Aug
(167) |
Sep
(330) |
Oct
(212) |
Nov
(95) |
Dec
(114) |
2014 |
Jan
(40) |
Feb
(63) |
Mar
(62) |
Apr
(65) |
May
(82) |
Jun
(105) |
Jul
(56) |
Aug
(175) |
Sep
(79) |
Oct
(49) |
Nov
(51) |
Dec
(47) |
2015 |
Jan
(26) |
Feb
(69) |
Mar
(82) |
Apr
(55) |
May
(35) |
Jun
(57) |
Jul
(54) |
Aug
(56) |
Sep
(25) |
Oct
(21) |
Nov
(8) |
Dec
(27) |
2016 |
Jan
(49) |
Feb
(44) |
Mar
(132) |
Apr
(39) |
May
(39) |
Jun
(49) |
Jul
(70) |
Aug
(43) |
Sep
(69) |
Oct
(79) |
Nov
(65) |
Dec
(32) |
2017 |
Jan
(99) |
Feb
(88) |
Mar
(42) |
Apr
(47) |
May
(56) |
Jun
|
Jul
(79) |
Aug
(9) |
Sep
(29) |
Oct
(4) |
Nov
|
Dec
(12) |
2018 |
Jan
(45) |
Feb
(6) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
1
(29) |
2
(21) |
3
(16) |
4
(9) |
5
(9) |
6
(10) |
7
(32) |
8
(9) |
9
(16) |
10
(19) |
11
(8) |
12
(17) |
13
(15) |
14
(25) |
15
(24) |
16
(20) |
17
(18) |
18
(6) |
19
(17) |
20
(9) |
21
(25) |
22
(28) |
23
(21) |
24
(12) |
25
(7) |
26
(23) |
27
(13) |
28
(17) |
29
(7) |
30
(15) |
31
(8) |
From: Peter Mcleod <peter_m@an...> - 2003-05-21 23:48:33
|
Thanks heaps - I guess I'll use the pascal setup utility for a self extracting win32 install and then just learn how to create a few of the popular linux packages. I'll look into mac-osx a little more carefully later then - when I've at least got a test system (need to upgrade from mac-os9 first). For those of you interested I'm currently testing my own program installations on: windows 98, windows NT, red hat linux, yellow dog linux (I also have mac-os9). As I'm not doing anything out of the ordinary I suspect that's enough to expect other versions of windows and linux to install correctly. On Wed, 21 May 2003 06:48:25 -0400 Earnie Boyd <earnie_boyd@...> wrote: > Peter Mcleod wrote: > >Hi all, > > > >When it comes to installation programs, a preference I > have > >always had is for a friendly self-extracting > (compressed) > >executable that automatically copies its contents to a > temp > >directory and then starts up an install program (this is > >often helpful as there are still many computer users out > >there who are not so literate). The MinGW and MSYS > >binaries themselves are provided in such a download > format. > > > > Thanks, I agree. > > > > >My questions are: > > > >1. Ideally, I would like to package my cross-os > >programs/utilities like this - is there anything in the > >minGW/gcc world for setting up something similar so that > it > >produces a win32 and a unix installer? How did they > >achieve it with the MinGW installer? What was used for > the > >GUI - surely not GTK without a runtime? --It may help > to > >know I always keep my source code 100% compatible > between > >win32 and unix - that is, no macros, no using os > specific > > function/run-time libraries. I don't even write to the > >windows registery but expect that the installer would > have > >to - for the windows "add/remove programs" utility. > > > > I use an open source utility named INNO Setup which you > can find at http://www.jrsoftware.org/isinfo.php and a > bit of bash scripting. The drawback is that the source > is Borland Pascal. INNO Setup uses a script to control > what is included and has pre and post install controls. > It doesn't have to write to registry at all but will if > you choose to include uninstall procedures only for the > "add/remove programs" utility. > > >2. My previous experience with install programs are all > >win32 related - I understand the various linux > >distributions have their own package managers (I've used > >RPM quite a bit but that's all). How does the linux > world > >co-ordinate installations (if at all)? I wouldn't want > to > >lock out anybody from using any of my programs/utilities > >because they don't install anything that doesn't go > through > >their package manager but at the same time I don't want > to > >create and maintain heaps and heaps of install packages? > > > > > What a delima, I would hope that package distributors > using RPM and DEBIAN dpkg have some nice utilities to > help that delima. I don't know if you can get the INNO > Setup to build for linux, I doubt it, it's mostly Win32 > oriented. I do know that there are ports of some style > of both RPM and DPKG for win32, there is even a > debian-win32 list at debian.org. > > >Whatever info you have, recommendations or sites that > you > >can point me to would be appreciated? If I have to pay > for > >a utility (that supports win32 and linux) and it saves > me > >the bother of too much maintenance, I would be glad to. > > > > > Well, let me know what you come up with. I certainly > don't have an answer for something Linux. INNO Setup > works well for Win32. > > >I have yet another question (which I hope won't detract > >anybody from the above and more important to me) - and > that > >is, how much like linux/unix is mac-osx - do we have a > gcc > >compiler available for it - the standard compiler? If I > >write a plain ansi c program in linux and compile it > will > >it run on linux - or do I need to recompile it on that > os? > > > > IIRC, gcc does exist for OSX. You will need to recompile > and link your binaries unless emulation libraries are > provided, such as WINE or LINE. > > HTH, > Earnie. > == Download ringtones, logos and picture messages at Ananzi Mobile Fun. http://www.ananzi.co.za/cgi-bin/goto.pl?mobile |
From: Oscar Fuentes <ofv@wa...> - 2003-05-21 22:01:35
|
Anders Lind=E9n <mingw@...> writes: > Hello! > > I have a strange situation. > > I have this files in my project: > > 2003-05-21 20:51 31 365 test.cpp > 2003-05-21 23:13 49 533 test.o > 2003-05-21 23:13 499 876 test.dll > 2003-05-21 23:13 4 452 libstdll.a > 2003-05-12 15:05 87 test.def > 2003-05-21 19:46 218 Makefile > 2003-05-16 23:02 44 test.bat > 2003-05-21 20:07 311 file.txt > > > The problem is the really big dll file. I cant say what made the > dll-file this big. It was something I did in the code that made it > go from <100000 to 500000. When I strip this dll I get a file that > is 245760 bytes big, but thats nothing compared to the small dll I > had previously. (It was below 50k). > > > This is my makefile, maybe there is a clue in here: > > all: > g++ -c -DBUILD_DLL -fexceptions test.cpp -o test.o > dllwrap --output-lib=3Dlibstdll.a --dllname=3Dtest.dll --driver-name= =3Dg++ --def=3Dtest.def --entry _DllMain --add_stdcall_alias > test.o -lole32 -loleaut32 -lwsock32 > > Am I doing this in the right way? dllwrap is deprecated. gcc/g++ now supports the -shared switch, that creates a dll instead of an exe. I don't think this is the culprit of the size change. > I cannot put the test.cpp file here, but since the compilation of it > resulted in 49533 bytes, it feels very unlikely that the contents in > the cpp-file can affect the dll size this much. > > The def-file however: > > EXPORTS > DllRegisterServer > DllUnregisterServer > DllGetClassObject > DllCanUnloadNow > > > > Any suggestions? > What was magically causing this big dll size? Just making use of some I/O Standard C++ Library functionality is enough. A "hello world" c++ app using iostreams creates an executable larger than >400KB with my g++ 3.2.3 installation. > Any comments appreciated! > Maybe reinstalling mingw can be it? I don't think so. --=20 Oscar |
From: Benjamin Riefenstahl <Benjamin.Riefenstahl@ep...> - 2003-05-21 22:01:33
|
Hi Alan, Oscar, Oscar Fuentes <ofv@...> writes: > I think this is the problem: > > WRITELONG( '8BPS' ); > > In C++, how the compiler handles multibyte character constants is > implementation-defined. I guess the same applies to C. Ah, it's about those. Yes, what '8BPS' actually means here is more or less undefined, neither its integer value nor its actual byte-order is specified. We know that it has type "int" or "long", but that's about all we know from the language POV. Unless of course the compiler makes it an extension to explicitly document how it's supposed to work, like the compilers on MacOS do it. But I don't believe gcc has ever made any garantees about this, at least not on platforms other than MacOSX. Alan, you should use char[4] instead, if you can do that. Otherwise you need to write special binary parsers/formatters just for these kind of type codes, with their actual implementation depending on the compiler. Also make sure that they are separate from the parsers/formatters for int/long. so long, benny |
From: <mingw@ca...> - 2003-05-21 21:19:02
|
Hello! I have a strange situation. I have this files in my project: 2003-05-21 20:51 31 365 test.cpp 2003-05-21 23:13 49 533 test.o 2003-05-21 23:13 499 876 test.dll 2003-05-21 23:13 4 452 libstdll.a 2003-05-12 15:05 87 test.def 2003-05-21 19:46 218 Makefile 2003-05-16 23:02 44 test.bat 2003-05-21 20:07 311 file.txt The problem is the really big dll file. I cant say what made the dll-file this big. It was something I did in the code that made it go from <100000 to 500000. When I strip this dll I get a file that is 245760 bytes big, but thats nothing compared to the small dll I had previously. (It was below 50k). This is my makefile, maybe there is a clue in here: all: g++ -c -DBUILD_DLL -fexceptions test.cpp -o test.o dllwrap --output-lib=libstdll.a --dllname=test.dll --driver-name=g++ --def=test.def --entry _DllMain --add_stdcall_alias test.o -lole32 -loleaut32 -lwsock32 Am I doing this in the right way? I cannot put the test.cpp file here, but since the compilation of it resulted in 49533 bytes, it feels very unlikely that the contents in the cpp-file can affect the dll size this much. The def-file however: EXPORTS DllRegisterServer DllUnregisterServer DllGetClassObject DllCanUnloadNow Any suggestions? What was magically causing this big dll size? Any comments appreciated! Maybe reinstalling mingw can be it? /Anders Lindén |
From: Oscar Fuentes <ofv@wa...> - 2003-05-21 21:03:35
|
"Alan Smallbone" <asmallbone@...> writes: > Hi Oscar, > > Thanks for responding, I have attached a zip file which I hacked > bits of the program out of and made it into a short executable that > illustrates the problem that I am seeing. It is not in the "mywrite" > definition as I first thought, it appears to be in how the data is > passed to it from the "WRITELONG" as defined in this program. In the > zip file is the header file and the test case program, and please, > it is not the best thing in the world as an example. Also included > are results from the two versions of the c compiler the > fwrite.out_test1_V1 is from version 2.95.3-6 of gcc and is in the > correct order, the fwrite.out_test1_V2 file is from gcc version 3.2 > from the latest version of mingw. Thanks so much for the help. [Please keep discussion on list, thanks.] I think this is the problem: WRITELONG( '8BPS' ); In C++, how the compiler handles multibyte character constants is implementation-defined. I guess the same applies to C. Maybe gcc 2.9x keeps the byte order and 3.x swaps it. Have you tried with integer constants instead of multibyte character constants? -- Oscar |
From: Nicolay Giraldo <ngiraldo@co...> - 2003-05-21 20:16:08
|
On Wed, 21 May 2003 11:29:12 -0400, Earnie Boyd <earnie_boyd@...> wrote: >> Creating a installer is just creating a script and calling the nsis >> compiler, you can put that in a makefile if you want. Compile times for >> the installer are a matter of a couple of seconds. >> > > Wouldn't that depend on the size of the distribution included in the > installer? > Mmm. Yes. It depends also in the compressor. When using bzip it's slower. > Not necessary, but highly recommended. However, if I found an installer > that worked well on both Win32 and a Linux flavor, I wouldn't be opposed > to using a different installer than what is considered standard for that > system. Source code is in C++ (but full of HWND and other MSW stuff), it would be great to have a single linux installer. Even if it just detects the distro and then launches the package manager with the right package. -- Nicolay Giraldo ------------------------ We are Turing O-Machines The Oracle is out there |
From: Sascha Sommer <saschasommer@fr...> - 2003-05-21 18:17:30
|
Is there a reason why there is no ssize_t type for mingw? If not, could it please be added or do you prefere a patch? Sascha |
From: Jed Roberts <jedroberts@po...> - 2003-05-21 17:14:16
|
Hi, I just downloaded the new make v3.80 and it doesn't read my makefile. = This works: make -fmakefile all But this doesn't: make all I get: make: *** No rule to make target `all'. Stop. I had been using the 3.79.1 make from DJGPP and it did not have this = problem. What am I doing wrong? Jed Roberts |
From: Timothy Schepens <tischepe@fa...> - 2003-05-21 16:59:49
|
Greg Chicares wrote: > psksvp wrote: > >>If I build a Win32 app with flag -mwindows, I wonder if there is a way to >>enable console output from printf, to the console(sh) that I start the >>program(started from commandline in msys sh)? > > > IIRC, a pure GUI app can't have a console, > but a console app can have a GUI. > > A GUI app can get a console with AllocConsole, but it will create a new console window. So you will have to write a console app and add a GUI to it. Timothy |
From: TROCHU Xavier <xtrochu@ya...> - 2003-05-21 16:29:58
|
--- Greg Chicares <chicares@...> wrote: > psksvp wrote: > > > > If I build a Win32 app with flag -mwindows, I > wonder if there is a way to > > enable console output from printf, to the > console(sh) that I start the > > program(started from commandline in msys sh)? > > IIRC, a pure GUI app can't have a console, > but a console app can have a GUI. > Not completly correct. You can create a console with a GUI application, using AllocConsole() but : _ It is a new console, not the one where you start the program. _ You can't directly call printf in it. You have to link the windows HANDLE to mscrt handle then to stdio FILE *. Looking at MSDN, you can call AttachConsole() to attach your process to the console of another process, but you have to know it's Process ID. And it's only available for XP. Xavier __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com |
From: Earnie Boyd <earnie_boyd@ya...> - 2003-05-21 16:29:20
|
psksvp wrote: > Hello > > If I build a Win32 app with flag -mwindows, I wonder if there is a way to > enable console output from printf, to the console(sh) that I start the > program(started from commandline in msys sh)? > No, but you could use CreateConsole and do that magic to open an output window. Earnie. |
From: Greg Chicares <chicares@mi...> - 2003-05-21 16:18:04
|
psksvp wrote: > > If I build a Win32 app with flag -mwindows, I wonder if there is a way to > enable console output from printf, to the console(sh) that I start the > program(started from commandline in msys sh)? IIRC, a pure GUI app can't have a console, but a console app can have a GUI. |
From: Earnie Boyd <earnie_boyd@ya...> - 2003-05-21 16:08:15
|
Nicolay Giraldo wrote: > > I think the best windows installer I've seen and used is NSIS, it's made > by nullsoft, the ones who made winamp. NSIS is opensource, well it's > more public domain than BSD/GPL. > Looks interesting. > Creating a installer is just creating a script and calling the nsis > compiler, you can put that in a makefile if you want. Compile times for > the installer are a matter of a couple of seconds. > Wouldn't that depend on the size of the distribution included in the installer? > I was looking at the Inno Setup page and the faq, and a lot of the "not > possible now" features of Inno Setup, like changing the icon, > conditional instalation and /silent installs are easy with NSIS installer. > I plan to look at NSIS for comparison, but I could create makefile targets for INNO Setup as well. > It doesn't create unix installers, I think that for linux at least is > necessary to create a package for the specific linux distro, i.e. > Mandrake 8.x RPM, Red Hat 7.x RPM, Debian .deb, and so on. > Not necessary, but highly recommended. However, if I found an installer that worked well on both Win32 and a Linux flavor, I wouldn't be opposed to using a different installer than what is considered standard for that system. Earnie. |
From: Benjamin Riefenstahl <Benjamin.Riefenstahl@ep...> - 2003-05-21 15:55:13
|
Hi, "psksvp" <psksvp@...> writes: > If I build a Win32 app with flag -mwindows, I wonder if there is a > way to enable console output from printf, to the console(sh) that I > start the program(started from commandline in msys sh)? No. You can compile without -mwindows and still create a GUI, if that fits the bill. You will need to add -lgdi32 if you explicitly use drawing functions. You can also use the "run" utility from the Xfree86 package to hide the console, for cases where you don't want it, like for desktop shortcuts. Hope this helps, benny |
From: psksvp <psksvp@cc...> - 2003-05-21 15:00:41
|
Hello If I build a Win32 app with flag -mwindows, I wonder if there is a way to enable console output from printf, to the console(sh) that I start the program(started from commandline in msys sh)? psksvp |
From: Nicolay Giraldo <ngiraldo@co...> - 2003-05-21 14:50:40
|
On Wed, 21 May 2003 08:55:37 +0200, Peter Mcleod <peter_m@...> wrote: > Hi all, > > When it comes to installation programs, a preference I have > always had is for a friendly self-extracting (compressed) > executable that automatically copies its contents to a temp > directory and then starts up an install program (this is > often helpful as there are still many computer users out > there who are not so literate). The MinGW and MSYS > binaries themselves are provided in such a download format. > > > My questions are: > > 1. Ideally, I would like to package my cross-os > programs/utilities like this - is there anything in the > minGW/gcc world for setting up something similar so that it > produces a win32 and a unix installer? How did they > achieve it with the MinGW installer? What was used for the > GUI - surely not GTK without a runtime? --It may help to > know I always keep my source code 100% compatible between > win32 and unix - that is, no macros, no using os specific > function/run-time libraries. I don't even write to the > windows registery but expect that the installer would have > to - for the windows "add/remove programs" utility. I think the best windows installer I've seen and used is NSIS, it's made by nullsoft, the ones who made winamp. NSIS is opensource, well it's more public domain than BSD/GPL. Creating a installer is just creating a script and calling the nsis compiler, you can put that in a makefile if you want. Compile times for the installer are a matter of a couple of seconds. I was looking at the Inno Setup page and the faq, and a lot of the "not possible now" features of Inno Setup, like changing the icon, conditional instalation and /silent installs are easy with NSIS installer. It doesn't create unix installers, I think that for linux at least is necessary to create a package for the specific linux distro, i.e. Mandrake 8.x RPM, Red Hat 7.x RPM, Debian .deb, and so on. -- Nicolay Giraldo ------------------------ We are Turing O-Machines The Oracle is out there |
From: Benjamin Riefenstahl <Benjamin.Riefenstahl@ep...> - 2003-05-21 14:15:02
|
Hi Alan, "Alan Smallbone" <asmallbone@...> writes: > in my program I have the following setup for my file writing: > #define mywrite(fspec, count, data) count=fwrite(data,1,count,fspec) > > For discussion lets say count=4 and data is pointing to "ABCD" > > When I compile under Mingw ver1.08 and write out the data I get > "ABCD" in the file which is what I want. When compiled with the > latest release of Mingw 2.0. and executed I get "DCBA" in the file, The behaviour of the data sounds like a byte-order problem but your description doesn't. Can you provide a 10-20 lines compilable program to illustrate the problem that you have? Certainly the compiler hasn't changed in the byte-ordering aspect, not is it likely that there are or ever will be switches to change that type of behaviour. so long, benny |
From: Roger K. Wells <ROGER.K.WELLS@sa...> - 2003-05-21 14:04:02
|
Virtual wrote: > I have a little problem sharing variables from a DLL to > another...please see this example: > > -------- FILE 1: hello.c -------- > > #include "dllfct.h" > > int main () { > i = 5; > tstfunc(); > i = 2; > tstfunc2(); > return (0); > } > > --------- FILE 2: dllfct.h ------- > > #ifdef BUILD_DLL > #define EXPORT __declspec(dllexport) > #else > #define EXPORT __declspec(dllimport) > #endif > > EXPORT int i; > EXPORT void tstfunc (void); > > --------- FILE 3: dllfct.c ---------- > > #include <stdio.h> > #include "dllfct.h" > > EXPORT int i=0; > > EXPORT void tstfunc (void) { > printf ("Hello%d\n", i); > } > ---------- FILE 4: dllfct2.h ----------- > EXPORT void tstfunc2 (void); > ---------- FILE 5: dllfct2.c ----------- > > #include <stdio.h> > #include "dllfct.h" > #include "dllfct2.h" > > EXPORT void tstfunc2 (void) { > printf("VAL IS=%d", i); > } > > ---------- COMPILED WITH: -------------- > > gcc -DBUILD_DLL -shared -o tst.dll dllfct.c > -Wl,--output-def,tstdll.def,--out-implib,libtstdll.a > > gcc -DBUILD_DLL -shared -o tst2.dll dllfct2.c > -Wl,--output-def,tst2dll.def,--out-implib,libtstdll2.a > > gcc -o hello.exe hello.o -L./ -ltstdll -ltstdll2 > > ----------- BUT ON VIDEO: ---------------- > > Hello5 > VAL IS=0 > > -------------------------------------------- > > how can I view the changes to i, maded by hello.c, from tstfunc2 into > tst2.dll ???? > > Please, it's very important. > > > P.S: 'scuse for my bad english!!! you need two BUILD_DLL macros. This because when you are building dllfct2.dll you are in fact using dllfct.dll. Define DLLFCT_BUILD_DLL & DLLFCT2_BUILD_DLL & define them as appropriate hope this helps -- Roger Wells, P.E. SAIC 221 Third St Newport, RI 02840 401-847-4210 (voice) 401-849-1585 (fax) roger@... |
From: Serge Bakkal <Serge.Bakkal@wa...> - 2003-05-21 12:31:23
|
Hi , this is my first post to list so I hope I formulate this well : I'm compiling a large framework using mingw while the original compiler on nt stations is msvc . I' ve been experimenting troubles with exception handling : gcc323 (2003-05-04) compiles with option --enable-sjlj-exceptions (reading 3.2.3/specs ) but it appears that __USING_SJLJ_EXCEPTIONS__ has to be defined to get the correct handler linked with excutables (dll ,exe) . Is that expected behavior , and if not , is this the relevant list where this should be posted ? Serge Bakkal |
From: Virtual <virtual-heaven@li...> - 2003-05-21 12:15:10
|
I have a little problem sharing variables from a DLL to another...please = see this example: -------- FILE 1: hello.c -------- #include "dllfct.h" int main () { i =3D 5; tstfunc(); i =3D 2; tstfunc2(); return (0); } --------- FILE 2: dllfct.h ------- #ifdef BUILD_DLL #define EXPORT __declspec(dllexport) #else #define EXPORT __declspec(dllimport) #endif EXPORT int i; EXPORT void tstfunc (void); --------- FILE 3: dllfct.c ---------- #include <stdio.h> #include "dllfct.h" EXPORT int i=3D0; EXPORT void tstfunc (void) { printf ("Hello%d\n", i); } ---------- FILE 4: dllfct2.h ----------- EXPORT void tstfunc2 (void); ---------- FILE 5: dllfct2.c ----------- #include <stdio.h> #include "dllfct.h" #include "dllfct2.h" EXPORT void tstfunc2 (void) { printf("VAL IS=3D%d", i); } ---------- COMPILED WITH: -------------- gcc -DBUILD_DLL -shared -o tst.dll dllfct.c = -Wl,--output-def,tstdll.def,--out-implib,libtstdll.a gcc -DBUILD_DLL -shared -o tst2.dll dllfct2.c = -Wl,--output-def,tst2dll.def,--out-implib,libtstdll2.a gcc -o hello.exe hello.o -L./ -ltstdll -ltstdll2 ----------- BUT ON VIDEO: ---------------- Hello5 VAL IS=3D0 -------------------------------------------- how can I view the changes to i, maded by hello.c, from tstfunc2 into = tst2.dll ???? Please, it's very important. P.S: 'scuse for my bad english!!! |
From: Greg Chicares <chicares@mi...> - 2003-05-21 12:11:40
|
Peter Mcleod wrote: > [...] > Whatever info you have, recommendations or sites that you > can point me to would be appreciated My favorite installer is tar + bzip2, so I don't have any positive recommendation for GUI installers--but I do have a negative one: avoid any 16-bit installer. Some 32-bit windows packages are still distributed with 16-bit install programs. Maybe that's for backward compatibility with win32s; I dunno. But to run these installers under windows 2K, they need NTVDM. Yet NTVDM is unsafe and can crash the OS, so I've removed it from my system (I'm not the only one who's done this), and therefore 16-bit installers won't run here. |
From: Roger K. Wells <ROGER.K.WELLS@sa...> - 2003-05-21 12:03:36
|
Alan Smallbone wrote: >Hi, > >in my program I have the following setup for my file writing: >#define mywrite(fspec, count, data) count=fwrite(data,1,count,fspec) > >For discussion lets say count=4 and data is pointing to "ABCD" > >When I compile under Mingw ver1.08 and write out the data I get "ABCD" in >the file which is what I want. When compiled with the latest release of >Mingw 2.0. and executed I get "DCBA" in the file, do I need to rewrite my >program or is there a switch that will change this to behave as it did in >the previous release? I am interested in using the latest version if >possible without rewriting my program. Or there is probably a glaring error >in how I am implementing this, any thoughts would be appreciated. If this is >the wrong forum please let me know. > >Thanks in advance for any help. > >Alan > > >Alan Smallbone >FEM, Inc. >FAA Repair Station PU3R776L >(818) 240-7740 >(818) 240-1009 fax >asmallbone@... >http://www.fortnereng.com > > > > >------------------------------------------------------- >This SF.net email is sponsored by: ObjectStore. >If flattening out C++ or Java code to make your application fit in a >relational database is painful, don't do it! Check out ObjectStore. >Now part of Progress Software. http://www.objectstore.net/sourceforge >_______________________________________________ >MinGW-users mailing list >MinGW-users@... > >You may change your MinGW Account Options or unsubscribe at: >https://lists.sourceforge.net/lists/listinfo/mingw-users > > > > FWIW the following works as expected W2k, gcc (GCC) 3.2.3 (mingw special 20030425-1): #include <stdio.h> #include <stdlib.h> #define mywrite(fspec, count, data) count=fwrite(data,1,count,fspec) int main(void) { FILE *f; char *data = "ABCD"; int count = 4; f = fopen("fwrite.out", "wb+"); if (f) { mywrite(f, count, data); fclose(f); } return 0; } od -t x1 -a fwrite.out yields: 0000000 41 42 43 44 A B C D 0000004 for at least setting file mode to: "wb", "wb+", "w+", "w", "r+" (if it exists), "a+" -- Roger Wells, P.E. SAIC 221 Third St Newport, RI 02840 401-847-4210 (voice) 401-849-1585 (fax) roger@... |
From: Earnie Boyd <earnie_boyd@ya...> - 2003-05-21 10:48:01
|
Peter Mcleod wrote: > Hi all, > > When it comes to installation programs, a preference I have > always had is for a friendly self-extracting (compressed) > executable that automatically copies its contents to a temp > directory and then starts up an install program (this is > often helpful as there are still many computer users out > there who are not so literate). The MinGW and MSYS > binaries themselves are provided in such a download format. > Thanks, I agree. > > My questions are: > > 1. Ideally, I would like to package my cross-os > programs/utilities like this - is there anything in the > minGW/gcc world for setting up something similar so that it > produces a win32 and a unix installer? How did they > achieve it with the MinGW installer? What was used for the > GUI - surely not GTK without a runtime? --It may help to > know I always keep my source code 100% compatible between > win32 and unix - that is, no macros, no using os specific > function/run-time libraries. I don't even write to the > windows registery but expect that the installer would have > to - for the windows "add/remove programs" utility. > I use an open source utility named INNO Setup which you can find at http://www.jrsoftware.org/isinfo.php and a bit of bash scripting. The drawback is that the source is Borland Pascal. INNO Setup uses a script to control what is included and has pre and post install controls. It doesn't have to write to registry at all but will if you choose to include uninstall procedures only for the "add/remove programs" utility. > 2. My previous experience with install programs are all > win32 related - I understand the various linux > distributions have their own package managers (I've used > RPM quite a bit but that's all). How does the linux world > co-ordinate installations (if at all)? I wouldn't want to > lock out anybody from using any of my programs/utilities > because they don't install anything that doesn't go through > their package manager but at the same time I don't want to > create and maintain heaps and heaps of install packages? > What a delima, I would hope that package distributors using RPM and DEBIAN dpkg have some nice utilities to help that delima. I don't know if you can get the INNO Setup to build for linux, I doubt it, it's mostly Win32 oriented. I do know that there are ports of some style of both RPM and DPKG for win32, there is even a debian-win32 list at debian.org. > Whatever info you have, recommendations or sites that you > can point me to would be appreciated? If I have to pay for > a utility (that supports win32 and linux) and it saves me > the bother of too much maintenance, I would be glad to. > Well, let me know what you come up with. I certainly don't have an answer for something Linux. INNO Setup works well for Win32. > I have yet another question (which I hope won't detract > anybody from the above and more important to me) - and that > is, how much like linux/unix is mac-osx - do we have a gcc > compiler available for it - the standard compiler? If I > write a plain ansi c program in linux and compile it will > it run on linux - or do I need to recompile it on that os? > IIRC, gcc does exist for OSX. You will need to recompile and link your binaries unless emulation libraries are provided, such as WINE or LINE. HTH, Earnie. |
From: Peter Mcleod <peter_m@an...> - 2003-05-21 06:55:52
|
Hi all, When it comes to installation programs, a preference I have always had is for a friendly self-extracting (compressed) executable that automatically copies its contents to a temp directory and then starts up an install program (this is often helpful as there are still many computer users out there who are not so literate). The MinGW and MSYS binaries themselves are provided in such a download format. My questions are: 1. Ideally, I would like to package my cross-os programs/utilities like this - is there anything in the minGW/gcc world for setting up something similar so that it produces a win32 and a unix installer? How did they achieve it with the MinGW installer? What was used for the GUI - surely not GTK without a runtime? --It may help to know I always keep my source code 100% compatible between win32 and unix - that is, no macros, no using os specific function/run-time libraries. I don't even write to the windows registery but expect that the installer would have to - for the windows "add/remove programs" utility. 2. My previous experience with install programs are all win32 related - I understand the various linux distributions have their own package managers (I've used RPM quite a bit but that's all). How does the linux world co-ordinate installations (if at all)? I wouldn't want to lock out anybody from using any of my programs/utilities because they don't install anything that doesn't go through their package manager but at the same time I don't want to create and maintain heaps and heaps of install packages? Whatever info you have, recommendations or sites that you can point me to would be appreciated? If I have to pay for a utility (that supports win32 and linux) and it saves me the bother of too much maintenance, I would be glad to. I have yet another question (which I hope won't detract anybody from the above and more important to me) - and that is, how much like linux/unix is mac-osx - do we have a gcc compiler available for it - the standard compiler? If I write a plain ansi c program in linux and compile it will it run on linux - or do I need to recompile it on that os? Thanks, Peter. == Download ringtones, logos and picture messages at Ananzi Mobile Fun. http://www.ananzi.co.za/cgi-bin/goto.pl?mobile |
From: Oscar Fuentes <ofv@wa...> - 2003-05-21 00:02:15
|
"Alan Smallbone" <asmallbone@...> writes: > in my program I have the following setup for my file writing: > #define mywrite(fspec, count, data) count=fwrite(data,1,count,fspec) > > For discussion lets say count=4 and data is pointing to "ABCD" > > When I compile under Mingw ver1.08 and write out the data I get "ABCD" in > the file which is what I want. When compiled with the latest release of > Mingw 2.0. and executed I get "DCBA" in the file, [snip] That's *very* strange. Could you provide a test case? -- Oscar |