>
>What options did you pass to the compiler? The snippet compiles fine
>with gcc 4.5.2 (Solaris 11) and 4.6.2 (SmartOS).
>
Yes but it does not compile with gcc 4.7.2. BTW,
the solution posted by James Carlson works!
Thanks a lot!
A.S.
--
Apostolos Syropoulos
Xanthi, Gre
Hello,
I have tried the following "trick"
>
> #include
> namespace KPS {
> extern "C" {
> #include
> }
> }
>
and it worked. I will try it once more just to be on
the safe side. Obviously, I really appreciate your
help and your solution!
>
> Really, the right answer is to teach
Apostolos Syropoulos wrote:
Hello everybody,
I was trying to compile a program and one file failed to compile
with g++ 4.7.2 but it compiles with CC: Sun C++ 5.12 SunOS_i386 2011/11/16.
The following little program reproduces the error I got initially:
#include
#include
using namespace std;
On 04/01/13 15:51, Apostolos Syropoulos wrote:
> // unfortunately, the kpathsea headers are not C++-ready,
> // so we have to wrap it with some ugly code
> //namespace KPS {
> extern "C" {
> #include
Wow. I read that as insult added to injury. :-/
I'll assume th
>
> At a wild guess, that may have something to do with the stray 'extern
> "C"' block as well.
>
> I don't quite know what you're trying to do, but when I write C or C++
Well I am not trying to do anything! I am just trying to compile
the TeXLIve tree on Solaris. The program that causes this p
On Mon, 1 Apr 2013, James Carlson wrote:
On 04/01/13 14:29, Apostolos Syropoulos wrote:
Hello everybody,
I was trying to compile a program and one file failed to compile
with g++ 4.7.2 but it compiles with CC: Sun C++ 5.12 SunOS_i386 2011/11/16.
The real question here might be why Sun's comp
On 04/01/13 15:03, Apostolos Syropoulos wrote:
>> I think that begs a bit of a question: why would you want to include any
>> header file (even one in your own application) within a namespace {}
>> block? That sounds to me like an open invitation to hard-to-understand
>> problems.
>>
>
> Removing
>
> Have you tried including rather than string.h ?
>
No it's not working.
A.S.
--
Apostolos Syropoulos
Xanthi, Greece
http://obelix.ee.duth.gr/~apostolo
http://asyropoulos.wordpress.com
http://hypercomputation.blogspot.com/
___
llowing lines at the beginning of the input file:
#undef __cplusplus
#define __cplusplus 1
A.S.
--
Apostolos Syropoulos
Xanthi, Greece
>
> From: James Carlson
>To: openindiana-discuss@openindiana.org
>Sent: Monday, April 1, 2013
On 04/01/13 14:29, Apostolos Syropoulos wrote:
> Hello everybody,
>
> I was trying to compile a program and one file failed to compile
> with g++ 4.7.2 but it compiles with CC: Sun C++ 5.12 SunOS_i386 2011/11/16.
The real question here might be why Sun's compiler doesn't gag.
> using namespace s
Have you tried including rather than string.h ?
On 4/1/13 11:29 AM, "Apostolos Syropoulos" wrote:
>Hello everybody,
>
>I was trying to compile a program and one file failed to compile
>with g++ 4.7.2 but it compiles with CC: Sun C++ 5.12 SunOS_i386
>2011/11/16.
>
>The following little program
Hello everybody,
I was trying to compile a program and one file failed to compile
with g++ 4.7.2 but it compiles with CC: Sun C++ 5.12 SunOS_i386 2011/11/16.
The following little program reproduces the error I got initially:
#include
#include
using namespace std;
namespace KPS {
ex
12 matches
Mail list logo