🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.mac.programmer.codewarrior
2 messages
2 total messages Started by Joshua Cicora Wed, 20 Dec 2000 18:51
Maybe I'm just stupid or something
#1313
Author: Joshua Cicora
Date: Wed, 20 Dec 2000 18:51
25 lines
1725 bytes
Arrg... I don't understand this and its gotta be so simple that I'm gonna
shoot myself when I figure it out.  I just got back to CW4 and I'm trying to
compile the exceedingly simple program of:
#include <iostream.h>


int main (){
    cout << "what";
    return 0;
}

Include with this c++ file I have the following libraries (trying anything
to get it to work):  ANSI C++.PPC.Lib, ANSI C.PPC.Lib, InterfaceLib,
MWCRuntime.Lib, Complex.PPC.Lib, ToolsLib.o, and MathLib.

And I keep getting this as an error when I hit make:
 �� Link Error   : undefined: �__PROFILE� (code)
   Referenced from �__sinit_Second.cp_1� in Second.cp
�� Link Error   : undefined: �__PROFILE� (code)
   Referenced from �main� in Second.cp


I set the source model (under preferences) to ANSI C++.

Am I just dumb?  Why isn't this working?   Thanks sooo much!
Re: Maybe I'm just stupid or something
#1314
Author: meeroh
Date: Wed, 20 Dec 2000 19:22
19 lines
1639 bytes
In article <B66669EF.12FD%jcicora@udel.edu>, Joshua Cicora 
<jcicora@udel.edu> wrote:

>And I keep getting this as an error when I hit make:
> �� Link Error   : undefined: �__PROFILE� (code)
>   Referenced from �__sinit_Second.cp_1� in Second.cp
>�� Link Error   : undefined: �__PROFILE� (code)
>   Referenced from �main� in Second.cp
>
>I set the source model (under preferences) to ANSI C++.

Do you have "generate profiler information" turned on? If you do, turn 
it off, unless you wanted to profile your code.

Hth,

meeroh
-- 
You can get random signatures if you put text files into a folder called "Random Signatures" in your Preferences folder.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads