Connecting Tech Pros Worldwide Help | Site Map

problems with extern.

 
LinkBack Thread Tools Search this Thread
  #1  
Old December 1st, 2005, 10:25 PM
Levi Campbell
Guest
 
Posts: n/a
Default 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?


  #2  
Old December 1st, 2005, 10:45 PM
Alf P. Steinbach
Guest
 
Posts: n/a
Default 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?
  #3  
Old December 1st, 2005, 10:55 PM
Victor Bazarov
Guest
 
Posts: n/a
Default 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.
  #4  
Old December 2nd, 2005, 12:25 AM
Andrej Hristoliubov
Guest
 
Posts: n/a
Default 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......

  #5  
Old December 2nd, 2005, 01:35 AM
Levi Campbell
Guest
 
Posts: n/a
Default 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.

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

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.