Menu

#659 multiple local lobraries not allowed with g++ -c

v1.0 (example)
closed-invalid
nobody
None
5
2017-08-31
2017-08-31
No
g++ -c -m32 -O2 -std=c++11 -o libfile32.o libfile.cpp includedfile.cpp
g++: fatal error: cannot specify -o with -c, -S or -E with multiple files
compilation terminated.

g++ -c should allow compilation with multiple files if there is another local library file included. I should not have to add that library to LIB and use <> because then lib installation is broken for others who use it.

Discussion

  • NightStrike

    NightStrike - 2017-08-31

    I'm pretty close to agreeing with the general consensus that you're a
    troll. You've opened hundreds of tickets, only two of which were valid. At
    this point, I have to consider that you are intentionally wasting our time.

    I have so far steadfastly maintained that this project should treat users
    with the utmost respect, and we should endeavor to cast as wide a support
    net as possible, even reaching out past the purpose of this project. The
    user community has embraced our openness, and we've forged great
    relationships between numerous mainstream projects.

    You are inhibiting that openness.

    If you really don't know why this ticket (and virtually every ticket you
    have ever opened) is absurd, then you need to take it upon yourself to
    learn the tools you are using. Learn the languages, learn the concepts, and
    most importantly, learn how to ask for help without being downright cruel
    in your constant, belligerent accusations.

    As to your question, you need to learn the difference between compiling and
    linking, and read the documentation on basic gcc options. You also should
    learn that this project is not where you should be going to ask for help
    with gcc. There is a mailing list for that, gcc-help@gcc.gnu.org. I will
    warn you, though, that they will ban you there pretty quickly unless you
    completely change your approach. We have been extremely tolerant. That is
    not common in a world of volunteers.

    Your next trolling or otherwise inflammatory message, either on the
    mailing list, forum, or tracker, will result in a permanent ban.

    On Aug 31, 2017 3:09 PM, "Jim Michaels" jmichae3@users.sf.net wrote:


    Status: open
    Group: v1.0 (example)
    Created: Thu Aug 31, 2017 07:09 PM UTC by Jim Michaels
    Last Updated: Thu Aug 31, 2017 07:09 PM UTC
    Owner: nobody

    g++ -c -m32 -O2 -std=c++11 -o libfile32.o libfile.cpp includedfile.cpp
    g++: fatal error: cannot specify -o with -c, -S or -E with multiple files
    compilation terminated.

    g++ -c should allow compilation with multiple files if there is another
    local library file included. I should not have to add that library to LIB
    and use <> because then lib installation is broken for others who use it.


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/mingw-w64/bugs/659/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/subscriptions/

     
    • niXman

      niXman - 2017-08-31

      +1

       
  • niXman

    niXman - 2017-08-31
    • status: open --> closed-invalid
     

Log in to post a comment.