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
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
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"
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.
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"
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
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
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"