Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account

problem with use of: extern const int


Now I am trying to use a const int across two .cpp files. it seems to be ok until I try to access the value: /** N.cpp **/ int a = 55; const int b = 66;/** main.cpp **/ #include <iostream> using namespace std; extern int a; extern const int b; // this gets no complaints
View Original Thread
Comments
0
Be the first to comment

Join with account you already have


Sign in with Twitter account
Sign in with Facebook account
Sign in with Google Friend Connect
avatar
Tags: int, const, extern
Compile error on Gentoo Linux: warning: ignoring return value of 'size_t fwrite(const void*, size_t, size_t, FILE*)', declared with attribute warn_u
Aug 6, 2010
MongoVersion: 1.6.0 g++ (Gentoo 4.3.4 p1.0, pie-10.1.5) 4.3.4 When compiling on Linux (Gentoo) I get an error saying that: ignoring return value of 'size_t fwrite(const void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result …

Problem with FTP:
Aug 12, 2010
I have the following URL: ftp://myuser:mypas### @mysite.net/home/myuser/test-xls and am trying to copy a file into that directory. Here is the code I'm using: FileObject sourceFile = fsManager.resolveFile("/tmp/test.txt"); …

SSL problem
Jul 8, 2010
Using Tomcat 6.0.14 on an amazon EC2 server instance, trying to get SSL working. 1) succeeded when following Tomcat doc for installing a self-signed certificate so I know server works and can do SSL 2) tomcat gives errors on startup using a…

dc=example,dc=com DIT problem
Jun 18, 2010
I've filed a bug about dc=example,dc=com DIT in: https://issues.apache.org/jira/browse/DIRSERVER-1521 If the person responsible for the online doc or AD server setup is reading this mailing-list, it'd be nice if he could take a look. PS: After…

Problem with
Sep 3, 2010
I'm trying to do a quick change (I just added one line to Boot.scala) but I get a strange error. Here is the line LiftRules.noticesAutoFadeOut.default.set((noticeType: NoticeType.Value) => Full((1 seconds, 2 seconds))) and here is the…

Re: Problem with 0.3.0-RC4 on mac
Aug 5, 2010
Was there ever a resolution to this problem? If so, can you open a ticket? On Fri, Jun 11, 2010 at 2:30 PM, Doug Judd <dou### @hypertable.com> wrote: > This is also happening on 64-bit CentOS 5.2, gcc version 4.1.2 > > - Doug >…

Re: another UTF-8 problem
Aug 24, 2010
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Tim, On 8/24/2010 9:06 AM, Tim-Christian Mundt wrote: > I've encountered a UTF-8 problem and yes, URIEncoding="UTF-8" is set. If you're connecting-out to a SOAP service, then the URIEncoding…

Installation problem
Aug 18, 2010
I ran into an installation problem, and, hope you can help me out with it. Initially I tried running the installer (* httpd-2.2.16-win32-x86-openssl-0.9.8o.msi<http://httpd.apache.org/d ownload.cgi#apache22> *), on my laptop which runs…

Cache problem
Jun 14, 2010
Hi all, probably I have a stupid problem. I updated my bundle, with new esp scripts but when I try it, there is the old version loaded and not the new one. Also if I remove the bundle from the console there is always the old one. What could be? …

Installation problem
Aug 18, 2010
I ran into an installation problem, and, hope you can help me out with it. Initially I tried running the installer (* httpd-2.2.16-win32-x86-openssl-0.9.8o.msi<http://httpd.apache.org/d ownload.cgi#apache22> *), on my laptop which runs…