Home » U++ Library support » U++ Library : Other (not classified elsewhere) » problem with fprintf
problem with fprintf [message #29217] |
Mon, 11 October 2010 14:08 |
o_wild
Messages: 28 Registered: December 2008 Location: Urmqi
|
Promising Member |
|
|
The following code is excerpt of an opensource software, but there is error when compiled.
fprintf(ofp,"%s\n",mes1); // mes1 is of type String
The error message is
cannot pass objects of non-trivially-copyable type 'class Upp::String' through '...'
The software can be compiled with both mingw and MSVC as the developer says. Since I have problem using MSVC due to C2001 error(new line in constant), I choose MingGW 4.5.0.
Is their any substitute for 'fprintf'? by the way, i tested 'printf' and found the same problem.
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Sep 20 10:06:54 CEST 2024
Total time taken to generate the page: 0.03584 seconds
|