Results 1 to 2 of 2

Thread: Qt, Windows and cygwin --- crt0.o: No such file ...?

  1. #1
    Join Date
    Jun 2006
    Location
    Sweden
    Posts
    99
    Thanks
    11
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Qt, Windows and cygwin --- crt0.o: No such file ...?

    I have Qt 4.1.4 installed together with mingw 5.0.2 on Windows XP and I can compile without problems from the command prompt. Now, for various reasons, i need to compile a project i'm working on from within cygwin. Initially cygwin had troubles dealing with the "\" path characters in the Makefile. After changing them all to "/" the compilation seemed to work until i got the following error:

    /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../../../i686-pc-cygwin/bin/ld: crt0.o: No such file: No such file or directory.

    Obviously, there is no crt0.o-file and i don't really know why it's looking for it. Perhaps it's a bug due to my fingering with the Makefile? I've searched the Makefile for most derivations of crt0.o but have not found anything.

    Now, when i've tried to compile via cygwin previously i've had to use the mingw32-g++.exe instead of g++.exe to force it to compile for i386. The reason, as i understand it, is that mingw32-g++.exe is supposed to automatically set the machine and version variables. But now that is having no effect and i'm getting the above error regardless of which .exe i use.

    Any ideas?

  2. #2
    Join Date
    Jun 2006
    Location
    Sweden
    Posts
    99
    Thanks
    11
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt, Windows and cygwin --- crt0.o: No such file ...?

    Problem solved i suppose, by changing the linker from g++ to mingw32-g++ it managed to compile for windows.

Similar Threads

  1. Experience using KDevelop with Cygwin under windows
    By high_flyer in forum General Discussion
    Replies: 4
    Last Post: 11th September 2006, 16:50
  2. Installing Qt 4.1 (open source) on Windows XP
    By katrina in forum Installation and Deployment
    Replies: 8
    Last Post: 19th February 2006, 12:26

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.