problems with extern. 
December 1st, 2005, 10:25 PM
| | | problems with extern.
Okay, I'm working on a library with another person and I need to call
on code from my partner's half of the library. I have been calling
extern as "extern "language" type funcname (args)", but when I compile,
I get the following error messages with g++ 3.4.4.
error: expected primary-expression before "extern"
error: expected ';' before "extern"
error: expected ')' before "extern"
I've googled using both the error messages and "calling external
functions in C and C++" as keywords and got nil and there was nothing
in the g++ manuel, what am I doing wrong? | 
December 1st, 2005, 10:45 PM
| | | Re: problems with extern.
* Levi Campbell:[color=blue]
> Okay, I'm working on a library with another person and I need to call
> on code from my partner's half of the library. I have been calling
> extern as "extern "language" type funcname (args)", but when I compile,
> I get the following error messages with g++ 3.4.4.
>
> error: expected primary-expression before "extern"
> error: expected ';' before "extern"
> error: expected ')' before "extern"
>
> I've googled using both the error messages and "calling external
> functions in C and C++" as keywords and got nil and there was nothing
> in the g++ manuel, what am I doing wrong?[/color]
Show some code.
--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail? | 
December 1st, 2005, 10:55 PM
| | | Re: problems with extern.
Levi Campbell wrote:[color=blue]
> Okay, I'm working on a library with another person and I need to call
> on code from my partner's half of the library. I have been calling
> extern as "extern "language" type funcname (args)", but when I compile,
> I get the following error messages with g++ 3.4.4.
>
> error: expected primary-expression before "extern"
> error: expected ';' before "extern"
> error: expected ')' before "extern"
>
> I've googled using both the error messages and "calling external
> functions in C and C++" as keywords and got nil and there was nothing
> in the g++ manuel, what am I doing wrong?
>[/color]
You're not following the recommendations put forth by FAQ 5.8, that's
what you're doing wrong. | 
December 2nd, 2005, 12:25 AM
| | | Re: problems with extern.
[color=blue]
> You're not following the recommendations put forth by FAQ 5.8, that's
> what you're doing wrong.[/color]
Yeah, dude - listen to my friend and school mate Victor and quickly
follow the recommendations. And don't comeback until you memorize it.
Vitya, when are we meeting for bulochki?
as always, hi to babushka. I spoke with her last night and she says
that you're haven't called her in weeks. Get your life together and
stop wasting it with different women...... | 
December 2nd, 2005, 01:35 AM
| | | Re: problems with extern.
Ah, I didn't know about that. My problem has been fixed and I've got
the mentioned FAQ bookmarked. Thank you. | | Thread Tools | Search this Thread | | | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | | | | What is Bytes?
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 220,840 network members.
|