Guh! Metrowerks Codewarrior...

This is a discussion on Guh! Metrowerks Codewarrior... within the C++ Programming forums, part of the General Programming Boards category; does any one here use it? If you do can you please reply to this message? I need help linking ...

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    12

    Guh! Metrowerks Codewarrior...

    does any one here use it? If you do can you please reply to this message? I need help linking some files and I'm not sure how...

    SAW

  2. #2
    Registered User cody's Avatar
    Join Date
    Sep 2001
    Posts
    86
    Hi,

    I'm currently using CodeWarrior for programming a MPC555 board in C and RISC ASM. I prefer the Visual Studio for C++ applications, but maybe I can help you anyway...

    What's the problem?

    Aloa
    cody
    #include "reallife.h"

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    12
    Here is my situation, I have a program that I have to do for school. The program has two header files (.h), one object file (.o), and of course the main, and the definitions for one of the header files. These are the files that I have:

    cp6.C (main program)
    Date.h
    Date.C (definitions for Date.h)
    Time.o
    Time.h

    Okay, so when I try compiling these, I just put in cp6.C Date.C and Time.h. However, without a Time.C some of my functions aren't defined. At school, when I compile the program I have to use the Time.o in the compilation process. So, my question, after so much elaboration is, is there any way I can add the .o file to my source folder to compile? Without it can I not compile it using Codewarrior? Is there any way of compiling my program just with the files I have?

    So does that help any? I know it's kind of confusing, and if you dn't understand I'll try and explain a little more simpler.

  4. #4
    Registered User cody's Avatar
    Join Date
    Sep 2001
    Posts
    86
    Hmm Hmm Hmm...

    You should be able to use all your functions declared in your time.h header and later link them with your precompiled object file time.o. If this doesn't work I'd guess the CodeWarrior compiler is a little bit 'confused', because there is no time.c in your project. Have a look at the options and the help. There must be something with using precompiled objects, without a sourcefile. Maybe under Linker Settings, Project Settings, Compiler Settings, i dunno for real, sorry

    I'm using CodeWarrior for about a week now and ... hmm ... well... it's not bad... but it's not very good neither If you still can't get it to work, you could maybe post some error messages or something like that...


    aloa
    cody
    #include "reallife.h"

  5. #5
    Registered User
    Join Date
    Nov 2001
    Posts
    12
    Okay, this is what my error says:
    ------------------------------------------------------------------------------------
    Link Error: Undefined symbol: ??0Time@@AE@XZ (Time::Time()) in cp6v1.cpp
    ------------------------------------------------------------------------------------

    And the reason it does that is because it's looking for the Time.C file to compile. Man I wish I knew how to make it use an object file... What I've tried is changing the extension name to .obj. And codewarrior recognizes it, but it won't open it or use it... and I don't know how to add it to my source folder to compile. AAARGH!! I'm going to go insane 'cause people in other boards don't even bother!!

    sAW

  6. #6
    Registered User
    Join Date
    Nov 2001
    Posts
    12
    an update:

    Okay, for some strange reason I got an object file in my source folder... now I get this error:

    Object file Time.o not recognized (x86 Obj Importer)

    GAAAAAAH.... what do I do??? HELP ME PLEASE!!!!!!1

    SAW

  7. #7
    Registered User cody's Avatar
    Join Date
    Sep 2001
    Posts
    86
    Hmm sorry, as I said I dunno CodeWarrior very good yet I looked for some options about precompiled stuff and found some entry in the help and options, but it was just about headers, nothin' about object files. Can't u just get the time.c source file?!

    aloa
    cody
    #include "reallife.h"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Codewarrior
    By m.albert in forum C++ Programming
    Replies: 1
    Last Post: 03-02-2003, 04:02 AM
  2. Instantiation with CodeWarrior
    By arabushk in forum C++ Programming
    Replies: 2
    Last Post: 11-22-2002, 01:10 PM
  3. metrowerks codewarrior and dlls
    By canine in forum Windows Programming
    Replies: 7
    Last Post: 08-20-2002, 03:37 PM
  4. gotoxy in Metrowerks CodeWarrior
    By ER in forum C++ Programming
    Replies: 0
    Last Post: 05-29-2002, 01:02 PM
  5. Visual Studio Vs. CodeWarrior
    By PCLabRat in forum C++ Programming
    Replies: 17
    Last Post: 05-26-2002, 03:19 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21