From: lsavaete AT club-internet DOT fr (Laurent Savaete) Subject: Troubles compiling W95 application 5 May 1998 01:22:16 -0700 Message-ID: <354E0816.3044D6A9.cygnus.gnu-win32@club-internet.fr> Reply-To: lsavaete AT club-internet DOT fr Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------986A5C604C7E793958969C0F" To: gnu-win32 AT cygnus DOT com This is a multi-part message in MIME format. --------------986A5C604C7E793958969C0F Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello ! I have just downloaded the Cygwin32 b19 archive (CDK.exe) very happy to find a *FREE* C++ compiler for W95. I found the address in the news group "comp.lang.C++". But I have a HUGE PROBLEM : I typed in a script for Visual C++ 4.0, another for Borland C++ 4.5 and tried to compile them first with GCC.EXE provided in the archive then using a Win95 interface called DFE95 that calls Gcc.exe ! But no way ! They just sent me back a dozen error messages :-( What shall I do ? HELP !!!! I think I should tell you I am just beginning with C++. But those programs are right typed . It seems to me that some libraries or definitions are missing. To help you answer I attach the scripts (in txt files) I tried. -the one called AppSpy should write on a file the programs that are launched in W95 -the other called screen is a screen capture app to copy any part of the screen to the Clipboard. I hope this will help. Here is the part of my autoexec.bat file that sets the environment variables. SET MAKE_MODE=unix SET CYGFS=C:/Office/prog/cygnus/b19 SET GCC_EXEC_PREFIX=C:\OFFICE\PROG\CYGNUS\B19\H-I386~1\lib\gcc-lib\ SET TCL_LIBRARY=%CYGROOT%\share\tcl8.0\ SET GDBTK_LIBRARY=%CYGFS%/share/gdbtcl SET PATH=C:\OFFICE\PROG\CYGNUS\B19\H-I386~1\bin;%PATH% I have also created a \tmp directory and read all the faq. I am really disappointed that it doesn't work because I will be obliged to buy a commercial version if you do not answer this.(and commercial software costs a bit more than in the USA in France :-( Hoping to hear from you soon Best regards Laurent Savaete --------------986A5C604C7E793958969C0F Content-Type: application/x-unknown-content-type-c_auto_file; name="AppSpy.c" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="AppSpy.c" I2luY2x1ZGUgPHN0ZGxpY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FByb2MsIChISU5TVEFOQ0UpTlVM TCwwKTsNCgkJCXJldHVybiAwOw0KCQljYXNlIFdNX0FTU0hFTExIT09LOw0KCQkJcmV0dXJu IChMUkVTVUxUKWhTaGVsbEhvb2spOw0KCQljYXNlIFdNX0RFU1RST1k7DQoJCQlVbmhvb2tX aW5kb3dzSG9va0V4KGhTaGVsbEhvb2spOw0KCQkJUG9zdFF1aXRNZXNzYWdlKDApOw0KCQkJ cmV0dXJuIDA7DQoJfQ0KCXJldHVybihEZWZXaW5kb3dQcm9jKGhXbmQsbWVzc2FnZSx3UGFy YW0sbFBhcmFtKSk7DQp9DQo= --------------986A5C604C7E793958969C0F Content-Type: application/x-unknown-content-type-c_auto_file; name="screen.c" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="screen.c" I2luY2x1ZGUgPHdpbmRvd3MuaD4NCkxSRVNVTFQgQVBJRU5UUlkgV25kTWFpblByb2MgKEhX TkQsVUlOVCxXUEFSQU0sTFBBUkFNKTsNCnZvaWQgRHJhd1JlY3RhbmdsZSh2b2lkKTsNCnZv aWQgU2V0Qml0bWFwQ2xpcEJvYXJkKHZvaWQpOw0KDQpIV05EIGh3bmRXbmRNYWluOw0KUkVD VCByZWN0Ow0KSFBFTiBoUGVuOw0KQk9PTCBiRXRhdDsNCg0KaW50IFdJTkFQSSBXaW5NYWlu IChISU5TVEFOQ0UgaEluc3RhbmNlLCBISU5TVEFOQ0UgaFByZXZJbnN0YW5jZSxQU1RSIHN6 Q21kTGluZSwgaW50IGlDbWRTaG93KQ0Kew0KCU1TRyBtc2c7DQoJV05EQ0xBU1NFWCB3bmRj bGFzczsNCgkJd25kY2xhc3MuY2JTaXplID0gc2l6ZW9mKHduZGNsYXNzKTsNCgkJd25kY2xh c3Muc3R5bGUgPSBOVUxMOw0KCQl3bmRjbGFzcy5scGZuV25kUHJvYyA9IFduZE1haW5Qcm9j Ow0KCQl3bmRjbGFzcy5jYkNsc0V4dHJhPTA7DQoJCXduZGNsYXNzLmNiV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ibGVCaXRtYXAoaGRjLGlTaXplWCxpU2l6 ZVkpOw0KCVNlbGVjdE9iamVjdChoZGNNZW0saEJpdG1hcCk7DQoJU2V0TWFwTW9kZShoZGNN ZW0sR2V0TWFwTW9kZShoZGMpKTsNCglCaXRCbHQoaGRjTWVtLDAsMCxpU2l6ZVgsaVNpemVZ LGhkYyxyZWN0LmxlZnQscmVjdC50b3AsU1JDQ09QWSk7DQoJU2V0Q2xpcGJvYXJkRGF0YShD Rl9CSVRNQVAsaEJpdG1hcCk7DQoJRGVsZXRlREMoaGRjTWVtKTsNCglEZWxldGVEQyhoZGMp Ow0KCUNsb3NlQ0xpcGJvYXJkKCk7DQp9DQoNCg0KCQ0KDQoJ --------------986A5C604C7E793958969C0F-- - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".