Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Oct 2002
    Location
    middle of nowhere
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help compiling my first C++ program under Linux

    I'm used to using MSVC++ and Borland C++ Builder under Windows.... I've recently migrated to Linux (Red Hat 8) and I'm trying to compile my first QT project. I made the one straight off the tutorial - the clipboard manager - MultiClip.

    I've never really had any experience using a command line compiler... The tutorial said to run
    qmake -o Makefile multiclip.pro
    and then to run make normally. Anyway, the first time I did it there were a couple missing semicolons and I fixed that but now I dont know what this message means:
    Code:
    ]
    [root@localhost multiclip]# make
    g++  -o multiclip .obj/multiclipform.o .obj/moc_multiclipform.o   -L/usr/lib/qt3-gcc3.2/lib  -L/usr/X11R6/lib -lqt-mt -lXext -lX11 -lm
    /usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crt1.o: In function `_start':
    /usr/lib/gcc-lib/i386-redhat-linux/3.2/../../../crt1.o(.text+0x18): undefined reference to `main'
    collect2: ld returned 1 exit status
    make: *** [multiclip] Error 1
    and I dont know what it means. I uploaded it to my website
    here

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    The Netherlands
    Posts
    217
    Thanks
    0
    Thanked 0 Times in 0 Posts
    "This file is hosted by Tripod, a Lycos®Network Site, and is not available for download. "

  • #3
    Regular Coder
    Join Date
    Jul 2002
    Location
    Belgium
    Posts
    124
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Tripod doesn't allow hotlinks (or whatever you call it) to files on their servers. copy and past the link below in your adress bar

    http://shawnsanswerpage.tripod.com/multclip.tar.gz

    groetjes

    Maes

  • #4
    New Coder
    Join Date
    Oct 2002
    Location
    middle of nowhere
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I figured it out. I had made a main.cpp for it, but I didnt add it to the project.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •