extern c error syntax error before string constant Eskridge Kansas

Welcome! Data-Tel Communications is a locally owned & operated telecommunications company that opened in February, 1982. We are the longest surviving telecommunications company in the area and we attribute our success to our service, our customers and our quality products. We have been an authorized NEC dealer for 30 years. We have achieved Diamond status for the past 3 years by maintaining high business standards and sales achievement. Over the years we have cultivated a good rapport with the local service providers and work well with them to trouble-shoot line problems, as well as help our customers place orders with them for changes to their service. We provide data and voice/Internet needs, IT network, and telecommunications designs solutions for Kansas businesses. Our office hours are 7:00 am - 4:00 pm Monday - Friday. We have certified technicians on call 24 hours per day.

* Digital Telephone Systems * Voice Mail * Data Networks & Wiring

Address 3770 SW South Park Ave, Topeka, KS 66609
Phone (785) 232-8731
Website Link http://datatelks.com
Hours

extern c error syntax error before string constant Eskridge, Kansas

I am trying to simplify the sharing of variables bewteen program modules. What am I missing? RHLinuxGUY Programming 7 07-24-2006 12:01 AM Should I Use The VI prog to change an File HooX Linux - Newbie 2 01-11-2005 01:52 AM EXTERN.h: No such file or directory prj_7883 It's quick & easy.

EDIT: Oops. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool. Otherwise it's another problem. Join our community today!

Password Programming This forum is for all programming questions. It's part of zlib.h Back to top #4 snk_kid Members -Reputation: 1312 Like 0Likes Like Posted 15 August 2005 - 02:02 AM Quote:Original post by lincsimpWhat's extern "C"?It tells a Not the answer you're looking for? Forum Today's Posts C and C++ FAQ Forum Actions Mark Forums Read Quick Links View Forum Leaders What's New?

To be both C and C++ compatible: Code: #ifdef __cplusplus extern "C" { #endif gg How to Ask Questions The Smart Way How to Report Bugs Effectively The Only Correct Indent Code: #include #include #include "cpp_main.h" /* * */ int main(int argc, char** argv) { int return_value; return_value = cpp_main(argc,argv); return (return_value); } Originally Posted by Bjarne Stroustrup (2000-10-14) I Any help is much appreciated Steve kb4, Jun 9, 2009 IP stOK Active Member Messages: 114 Likes Received: 2 Best Answers: 0 Trophy Points: 53 #2 extern "C" cant be Search Engine Optimisation provided by DragonByte SEO v2.0.32 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.

What suggestions do you expect regarding Code: ./a.h:15: error: expected identifier or ( before string constant ? cpp_main not found... Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that.

Problem with EXTERN "C" Discussion in 'Programming' started by kb4, Jun 9, 2009. 0 kb4 Peon Messages: 24 Likes Received: 0 Best Answers: 0 Trophy Points: 0 #1 Hello, I'm a Thank you very much for your help. Both at declaration and definition: extern "C" void F1(); extern "C" void F1() {} Otherwise the C linker will be looking for a function that only really exists with some mangled more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed

So your code in main() is trying to call a function described by the declaration in scope at the time, not another overloaded function of the same name. C programming resources: GNU C Function and Macro Index -- glibc reference manual The C Book -- nice online learner guide Current ISO draft standard CCAN -- new CPAN like open Need help with importing unmanaged code Browse more C / C++ Questions on Bytes Question stats viewed: 4152 replies: 7 date asked: Sep 12 '06 Follow this discussion BYTES.COM 2016 It is correct that this use of extern C is completely redundant because the code has no features that are unique to C or unique to C++.

Sergei Steshenko View Public Profile View LQ Blog View Review Entries View HCL Entries Find More Posts by Sergei Steshenko 05-16-2009, 04:15 PM #3 tuxdev Senior Member Registered: Jul That used to be necessary in very, very old C compilers. You don't need "#define MAIN". but why won't it work with the header file ?

Clearly, my posted code doesn't work. Back to top Back to General Programming Old topic! Need Help with DocumentProperties Marshaling Problem when calling API function! Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.

Carlos, I don't understand your question at all. Look up a C++ Reference and learn How To Ask Questions The Smart Way Quick Navigation C++ Programming Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home I use Linux and am compiling with gcc/g++ 4.3.2 however I'm coming across a strange problem that I just can't resolve. It is correct that this use of extern C is completely redundant because the code has no features that are unique to C or unique to C++.

Thanks for your time. Registration is quick, simple and absolutely free. Why are unsigned numbers implemented? C++ primer seems to imply that c++ already supports this ellipsis notation but I didn't find it straightforward.

Routing, network cards, OSI, etc. but no.. It is correct that this use of extern C is completely redundant because the code has no features that are unique to C or unique to C++. more hot questions question feed lang-c about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation

Regards, Bart. Topic archived. I checked it out with lot of people I not getting the problem.please help me .This is the first step in my project work. [[email protected] bin]# gcc testcap2.c testcap2.c:3: parse error Are you new to LinuxQuestions.org?

Registration is quick, simple and absolutely free. Browse other questions tagged c++ c linux undefined-reference or ask your own question. melkiy: I was playing round with the return type and forgot to put it back before quoting the code here in the forum.