472,342 Members | 1,421 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,342 software developers and data experts.

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?

Dec 1 '05 #1
4 2784
* Levi Campbell:
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?


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?
Dec 1 '05 #2
Levi Campbell wrote:
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?


You're not following the recommendations put forth by FAQ 5.8, that's
what you're doing wrong.
Dec 1 '05 #3

You're not following the recommendations put forth by FAQ 5.8, that's
what you're doing wrong.


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

Dec 2 '05 #4
Ah, I didn't know about that. My problem has been fixed and I've got
the mentioned FAQ bookmarked. Thank you.

Dec 2 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Daniel Wilson | last post by:
I am having exception-handling and stability problems with .NET. I will have a block of managed code inside try...catch and will still get a...
9
by: Daniel Moree | last post by:
I'm using MS VC++ 6.0 I'm working on a big project. I've currently have several files for this project. Here's the problem. I have one header...
8
by: Jimmy Petersen | last post by:
Hello all, After reading through chapter 6 of the faq I must admit I'm a bit confused :-). What I am trying to do can be explained with the...
4
by: Jimmy Petersen | last post by:
Hello all, After reading through chapter 6 of the faq I must admit I'm a bit confused :-). What I am trying to do can be explained with the...
0
by: Michael Yanowitz | last post by:
Hello: I am just trying out SWIG, but quickly ran into problems. Using Cygwin gcc, I tried the following: 1) Created example.c (as given on...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.