Anyone creating programs using the MySQL C api using Cygwin?

2005-01-12 Thread Mikael Åsberg
Hello, I installed a native windows version of MySQL (4.1.18) and tried to compile a C program using the MySQL C API using GCC (version 3.3.3 cygwin special). The program compiles and links without any errors or warnings (maximum warning level, c99-mode) but segfaults near the end. I haven't

Three questions

2004-12-29 Thread Mikael Åsberg
Hello, I have three questions that aren't related. First: Is there a cygwin package that will let me compare two binary files to see if they are equal? Second: Is there a way to prevent gcc from adding .exe extension when building programs? I recall hearing something that win98 needs the .exe,

Where did the output go and question regarding return values of getopt_long()

2004-12-19 Thread Mikael Åsberg
Hello, consider this c++-function: void handle_command_line(int argc, char* const argv[], bool verbose, vectorstring numbers) { const int id_numbers = 4711; const int id_verbose = 4712; const int id_help = 4713; const option

Re: Where did the output go and question regarding return values of getopt_long()

2004-12-19 Thread Mikael Åsberg
Larry Hall wrote At 10:14 AM 12/19/2004, you wrote: Hello, consider this c++-function: void handle_command_line(int argc, char* const argv[], bool verbose, vectorstring numbers) { const int id_numbers = 4711; const int id_verbose = 4712;

MSVC-dll under cygwin

2004-12-02 Thread Mikael Åsberg
Hello, I was under the impression that using a Cygwin-compiled DLL under MSVC was extremely difficult, if not impossible, but using a MSVC-compiled DLL with programs compiled under Cygwin is possible? I have test program that first calls LoadLibrary() and then for each function in the DLL it

Re: MSVC-dll under cygwin

2004-12-02 Thread Mikael Åsberg
On Thu, Dec 02, 2004 at 04:30:56PM +0100, Mikael ?sberg wrote: Hello, I was under the impression that using a Cygwin-compiled DLL under MSVC was extremely difficult, if not impossible, but using a MSVC-compiled DLL with programs compiled under Cygwin is possible? I have test program that first

Re: MSVC-dll under cygwin

2004-12-02 Thread Mikael Åsberg
On Thu, Dec 02, 2004 at 04:30:56PM +0100, Mikael ?sberg wrote: Hello, I was under the impression that using a Cygwin-compiled DLL under MSVC was extremely difficult, if not impossible, but using a MSVC-compiled DLL with programs compiled under Cygwin is possible? I have test program that

Re: MSVC-dll under Cygwin

2004-12-02 Thread Mikael Åsberg
Fred Kulack wrote: Perhaps I'm untrusting, but I'm not sure I'd expect you to be able to use a standard C++ library object like string from one C++ binary in Cygwin to a non-C++ binary. I.e. cygwin std::string is probably not the same definition as MSVC std::string. Why would it be? You are

Re: g++ 3.4.1

2004-11-16 Thread Mikael Åsberg
Martin Magnusson wrote: I just tried upgrading from g++ 3.3.1 (which currently gives me an internal compiler error on my code) to the 3.4.1 version available from the Cygwin setup. After doing so, however, I get a flood of error messages about the many templates I have (such as template-id xxx

Same code, same script, different results

2004-09-23 Thread Mikael Åsberg
Hello, I am using the latest Cygwin with all packages updated (running Windows XP Professional SP2) and I'm having a problem with a simple C++ program that uses the Win32 API to scan a directory (recursively or non-recursively, depending on user input). The code is as follows: #include

Re: Same code, same script, different results

2004-09-23 Thread Mikael Åsberg
On Thu, 23 Sep 2004, Mikael Åsberg wrote: Hello, I am using the latest Cygwin with all packages updated (running Windows XP Professional SP2) and I'm having a problem with a simple C++ program that uses the Win32 API to scan a directory (recursively or non-recursively, depending on user input

Cygwin function for getting the current directory?

2004-08-18 Thread Mikael Åsberg
What's a Cygwin-function for getting the current directory? I don't want to use Win32's GetCurrentDirectory(), becuase I am developing a program that I want to be able to port to Linux with smallest possible effort. What part of Cygwin's documentation have I failed to notice since I couldn't

Re: Cygwin function for getting the current directory?

2004-08-18 Thread Mikael Åsberg
Thanks for the reply, Ken. I am indeed programming in a compiled language, C++ to be more specific. And, yes, English is my second language. Thanks for pointing out the POSIX fucntion getcwd() to me, it seems to be just what I was looking for. I didn't have a man page for it, even though I

cd in bash script not being executed

2004-07-08 Thread Mikael Åsberg
Hello, I am using the latest Cygwin under Windows XP Professional. Lately, I've been playing around with the CVS version of emacs. I wrote a bash script that is supposed to check out the files and compile. However, it doesn't work, because the script fails to change directory. Here's the script:

MESA

2003-02-19 Thread Mikael Åsberg
Hello. I just installed Mesa 5.0 onto the latest Cygwin release...the installation process (./configure, make, make install) went without errors. However, when I try to build the following simple test program: #include GL\glut.h int main() { glutMainLoop(); return 0; } I get the

Re: MESA

2003-02-19 Thread Mikael Åsberg
- Original Message - From: Igor Pechtchanski [EMAIL PROTECTED] To: Mikael Åsberg [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 9:09 PM Subject: Re: MESA On Wed, 19 Feb 2003, Mikael Åsberg wrote: Hello. I just installed Mesa 5.0 onto the latest Cygwin

Re: MESA

2003-02-19 Thread Mikael Åsberg
- Original Message - From: Igor Pechtchanski [EMAIL PROTECTED] To: Mikael Åsberg [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 9:16 PM Subject: Re: MESA On Wed, 19 Feb 2003, Mikael Åsberg wrote: - Original Message - From: Igor Pechtchanski

Re: MESA

2003-02-19 Thread Mikael Åsberg
- Original Message - From: Igor Pechtchanski [EMAIL PROTECTED] To: Mikael Åsberg [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 9:32 PM Subject: Re: MESA On Wed, 19 Feb 2003, Mikael Åsberg wrote: - Original Message - From: Igor Pechtchanski

Re: MESA

2003-02-19 Thread Mikael Åsberg
- Original Message - From: Igor Pechtchanski [EMAIL PROTECTED] To: Mikael Åsberg [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 10:09 PM Subject: Re: MESA On Wed, 19 Feb 2003, Mikael Åsberg wrote: - Original Message - From: Igor Pechtchanski

Re: MESA

2003-02-19 Thread Mikael Åsberg
- Original Message - From: Elfyn McBratney [EMAIL PROTECTED] To: cygwin [EMAIL PROTECTED]; Mikael Åsberg [EMAIL PROTECTED] Sent: Wednesday, February 19, 2003 10:09 PM Subject: Re: MESA On Wed, 19 Feb 2003, Mikael Åsberg wrote: - Original Message - From: Igor

Ghost process

2003-02-18 Thread Mikael Åsberg
Hello. I am trying to teach myself basic Open GL programming (using the C language) and I've run into an annoying problem. Consider the following simple Open GL-program. /* simple1_1.c */ #include GL/glut.h void display() { glClear( GL_COLOR_BUFFER_BIT ); glBegin( GL_POLYGON );

Building opengl applications

2003-01-20 Thread Mikael Åsberg
Hello, I am trying to build a simple OpenGL program (an example taken from the famous Red Book). However, during the build process the following error messages are displayed: /cygdrive/c/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ccK0lHn2.o(.text+0xe):test.c: undefined reference to `glEnableClientState@4'

RE: Building opengl applications

2003-01-20 Thread Mikael Åsberg
- Original Message - From: Igor Pechtchanski [EMAIL PROTECTED] To: Mikael Åsberg [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, January 20, 2003 5:45 PM Subject: Re: Building opengl applications On Mon, 20 Jan 2003, [iso-8859-1] Mikael Åsberg wrote: Hello, I am trying

Re: Building opengl applications

2003-01-20 Thread Mikael Åsberg
- Original Message - From: Igor Pechtchanski [EMAIL PROTECTED] To: Mikael Åsberg [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, January 20, 2003 6:09 PM Subject: RE: Building opengl applications On Mon, 20 Jan 2003, [iso-8859-1] Mikael Åsberg wrote: - Original Message

RE: Building opengl applications

2003-01-20 Thread Mikael Åsberg
All problems have been solved, thanks for your help! // Mikael -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/