• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Setting up GCC under XP Pro

alkemyst

No Lifer
I have the 4.4.0 package extracted, but can't find the path and environment settings to get it to work.

Anyone have a write up?
 
i use cygwin. its simple.

if your okay with coding through a terminal by using vi or pico then cygwin is a fast way to setup what you need.
 
I will look at these tonight, I used to use cygwin...rebuilt my PC lately though and it's been 5-6 years since I installed any C environments.
 
i am not going to be doing development on this machine...just need to compile things from time to time. Currently I just want feralbynight.cpp compiled for my Druid. 🙂

 
I recommend Cygwin. You have to know what packages to install, but if you do, you should be able to get gcc running pretty easily. You can edit your files with vim or emacs (you can install an X server so you don't need to be constrained to a terminal).
 
The problem with Cygwin is that its compiled binaries require Cygwin1.dll, at least. MinGW, for which I gave a link for experimental GCC4 builds, produces more-or-less standalone binaries (for Windows).

If you're just trying to compile things, you shouldn't be going for GCC4 (unless you're looking for a faster binary). I'd suggest the official MinGW installer in general.
 
Picked up that MiniGW...my .cpp is not compiling though. So then I tried downloading Quincy 2005 to make sure my syntax on the commandline is not messed up.

I am loading the cpp and doing 'compile' so not adding anything to the mix. I have it pointed to my lib and inc.

The header is:
#include <iostream>
#include <cmath>
#include <ctime>
#include "mtrand.h"

using namespace std;

I downloaded a mtrand.h but it's saying M_PI not declared in this scope.

It should be something obvious. Any ideas?



 
figured it out...Defined M_PI...I think there was also a checkbox in quincy that can do that...something about including C99 definitions.

I also had to include both the mingw\lib and the minqw32\lib in the options menu...

thanks

EDIT SPOKE TO SOON.

Compiled by can't build/make it exec.

Getting undefined reference to MTRand_int32::seed(unsigned long)
MTRand_int32::init
MTRand_int32:😛
MTRand_int32::gen_state()
MTRand_int32::state
 
Back
Top