Re: M_PI

2006-04-10 Thread Ralf Habacker
Paulo Moura Guedes schrieb:
 On Friday 07 April 2006 21:10, Christian Ehrlicher wrote:
   
 Paulo Jorge Guedes schrieb:
 
 I'm going out for the weekend and I won't have an internet connection.
 I also send the math.h file that fixes the compilation.
   
 Sometimes you have really funny ideas - do you really think M$ change
 their math.h to fit your needs?
 

 I'm glad you appreciate my sense of humour but what do you mean? 
 I sent the file with the purpose of explaining myself better.
   
He mean, that there are no chances to change a header file provided with 
the msvc compiler, because ms will ignore relating patches.

To add definitions you have to change kdelibs\win\include\msvc\math.h 
for msvc compiler and kdelibs\win\include\mingw\math.h if you are using 
gcc on windows.

Then you can create a patch using the svn command line tool with  svn 
diff win\include\msvc\math.h, which output should be send to this list.

 Anyway, I hope that spending time so that KDE can build on Windows with MinGW 
 and VC++ can serve other people needs too.
   
That's fine to hear. Be welcome.

Ralf

___
Kde-buildsystem mailing list
Kde-buildsystem@kde.org
https://mail.kde.org/mailman/listinfo/kde-buildsystem


M_PI

2006-04-07 Thread Paulo Jorge Guedes
Hi,

Look at this error:

D:\dashboard-vc2005\kdelibs\kdefx\kimageeffect.cpp(3051) : error C2065:
'M_PI' : undeclared identifier

The math.h file that is being used by kdewin32 is in the path 
C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h and it's
the file that goes attached.
It has indeed M_PI declared and defined. Somehow the compiler doesn't
think so. If I place the same define on the top of the file it works.

Can somebody investigate this?

Paulo


math.h
Description: math.h
___
Kde-buildsystem mailing list
Kde-buildsystem@kde.org
https://mail.kde.org/mailman/listinfo/kde-buildsystem


RE: M_PI

2006-04-07 Thread Paulo Jorge Guedes
I'm going out for the weekend and I won't have an internet connection.
I also send the math.h file that fixes the compilation.

Paulo

 -Original Message-
 From: Paulo Jorge Guedes [mailto:[EMAIL PROTECTED]
 Sent: sexta-feira, 7 de Abril de 2006 18:03
 To: kde-buildsystem@kde.org
 Subject: M_PI
 
 Hi,
 
 Look at this error:
 
 D:\dashboard-vc2005\kdelibs\kdefx\kimageeffect.cpp(3051) : error
C2065:
 'M_PI' : undeclared identifier
 
 The math.h file that is being used by kdewin32 is in the path 
 C:\Program Files\Microsoft Visual Studio 8\VC\include\math.h and it's
 the file that goes attached.
 It has indeed M_PI declared and defined. Somehow the compiler doesn't
 think so. If I place the same define on the top of the file it works.
 
 Can somebody investigate this?
 
 Paulo


math.h
Description: math.h
___
Kde-buildsystem mailing list
Kde-buildsystem@kde.org
https://mail.kde.org/mailman/listinfo/kde-buildsystem


RE: M_PI

2006-04-07 Thread William A. Hoffman
At 01:10 PM 4/7/2006, Paulo Jorge Guedes wrote:
I'm going out for the weekend and I won't have an internet connection.
I also send the math.h file that fixes the compilation.

My guess is that _USE_MATH_DEFINES is not defined or this is defined:
_MATH_DEFINES_DEFINED.


Maybe this forwarding stuff is not working:

/* regular header from msvc includes */
#define _USE_MATH_DEFINES
#include ../include/math.h

What you need to do is run the compile line with cl -E and capture the output
and see what files are actually being included.

To do that you will have to edit Modules/Platform/Windows.cmake to force
it not to use the temp file for the command line of the build, then do
nmake VERBOSE=1.

-Bill


___
Kde-buildsystem mailing list
Kde-buildsystem@kde.org
https://mail.kde.org/mailman/listinfo/kde-buildsystem


Re: M_PI

2006-04-07 Thread Christian Ehrlicher
Paulo Jorge Guedes schrieb:
 I'm going out for the weekend and I won't have an internet connection.
 I also send the math.h file that fixes the compilation.
 
Sometimes you have really funny ideas - do you really think M$ change
their math.h to fit your needs?

Christian



signature.asc
Description: OpenPGP digital signature
___
Kde-buildsystem mailing list
Kde-buildsystem@kde.org
https://mail.kde.org/mailman/listinfo/kde-buildsystem