Recent Posts

Pages: 1 2 3 4 5 6 [7] 8 9 10
61
General (but related to Code::Blocks) / something about M_PI
« Last post by coutnut on September 07, 2021, 11:04:16 am »
Hi! Guys, nice to meet u all here.
     I am really new to CBs. and I am learning programing in the structure of OpenCASCADE. Typically, I should use VS2019. However my computer is a little bit old, if I use the VS2019,  sometimes it'll crash. So I aim to program with CBs, language is cpp.

    Here is the problem. I got a gp_Dir2d.lxx which uses M_PI.
    I defineed ||#define D_USE_MATH_DEFINES   || and ||  #define _USE_MATH_DEFINES || ,||   #include <math.h> ||   but error came out  : 'M_PI' was not declared in this scope.

    I am really confused. What should I do to fix it? (PS:this works in VS2019,BUT I really need a lighter IDE!)
62
Development / Re: Guide for building C::B on Linux request due to wiki 502 error
« Last post by AndrewCot on September 07, 2021, 09:32:40 am »
Thanks for the doc.

BTW I have IP6 disabled on my router.
63
Development / Re: Guide for building C::B on Linux request due to wiki 502 error
« Last post by Commaster on September 07, 2021, 06:45:37 am »
Surprisingly I have no issues. Must be that IPv6/IPv4 thing again  ;)
64
Development / Guide for building C::B on Linux request due to wiki 502 error
« Last post by AndrewCot on September 07, 2021, 06:22:38 am »
Does anyone have an up to date guide for building C::B on Linux that they can give me or if someone can post a copy of the following wiki page as I cannot get to the wiki page due to the 502 errors:
  http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Linux

The 502's seem to have gotten worse over the last 2 days as I was able to get to it a week ago, but I only started to try and build it earlier today and have hit issues with missing or miss configured packages that should hopefully be documented on the wiki or if someone has an up to date guide.
65
Updated X86 and X64 installers are now available that incorporate the latest SVN changes.
66
Help / Re: ar.exe: obj\Debug\main.o: No such file or directory
« Last post by creativegamer_03 on September 05, 2021, 04:55:27 am »
The log was the same as the first post. However I just solved my problem.

So, I was quite curious what the .cbp file looks like inside, which I then found out to be in an XML format. Looking through the tags, I found the tag '<Unit filename="main.c">'. I tinkered it by replacing it with "jsoncpp.cpp".
At first, I thought it didn't do anything when I try to rebuild it.
Then I thought of relaunching Code::Blocks and open the project file afterwards to load up from the modded .cbp file.
And so I did, then opened the "jsoncpp.cpp" file, pressed F9, and it is fixed.
67
General (but related to Code::Blocks) / Re: Status bar problem
« Last post by oBFusCATed on September 04, 2021, 09:32:16 pm »
This should be fixed in trunk. Sorry for the long delay.
68
Help / Re: ar.exe: obj\Debug\main.o: No such file or directory
« Last post by Miguel Gimenez on September 04, 2021, 06:13:46 pm »
The log must be different, please post it.
69
Help / Re: Codeblock files with debian
« Last post by Commaster on September 04, 2021, 05:24:21 pm »
GCC 4.9 is so old it's ugly... We are at GCC 10 or 11 now
70
Help / Re: ar.exe: obj\Debug\main.o: No such file or directory
« Last post by creativegamer_03 on September 04, 2021, 04:06:43 pm »
nope. same thing.
Pages: 1 2 3 4 5 6 [7] 8 9 10