Hm...problem "solved" with
$(CC) -BC:\Dev-Cpp\libexec\gcc\mingw32\3.4.2 $(CFLAGS) $(INCLUDE_PATHS) $(DEFINES) -c $< -o $@(bolded bit was just inserted).
So now I have a slew of...
Type: Posts; User: Orborde
Hm...problem "solved" with
$(CC) -BC:\Dev-Cpp\libexec\gcc\mingw32\3.4.2 $(CFLAGS) $(INCLUDE_PATHS) $(DEFINES) -c $< -o $@(bolded bit was just inserted).
So now I have a slew of...
Another question: How do I modify environment variables, assuming there are any on Windoze?
Okay, I'll go through the list:
1) Settings in your makefile (eg path, the setting of CC, etc)
CC = gcc.exe
2) Use forward slashes rather than backslashes in paths in the makefile
-Tried it; no...
Mmkay...I see what you're saying...
However, I still have a problem.
I did the following:
C:\Dev-Cpp\bin>gcc -print-prog-name=cc1
C:/DEV-CPP/BIN/../libexec/gcc/mingw32/3.4.2/cc1.exe
That file...
I'm trying to wrestle my C tools into compiling the Gaim source code on Windoze with little luck. I'm using the MingW version that came with Dev-C++ 4.9.9.2; until now I've never used a command line...
The idea is that there are two sources of randomness here:
1. The stuff the user types.
2. How many cycles elapse between keystrokes.
Look at the while(k != 27) loop. It adds the value of the...
I wrote the following program to generate a random key file for use in an encryption program:
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
printf("Key noise...
So I wrote the following program to test the limits of inheritance:
#include <stdio.h>
#include <conio.h>
class baseMomma {
public:
virtual int x ();
virtual int...
For one thing, 500^3/1024/1024 = 238 MEGABYTES OF RAM.
In the following code, I'm trying to create a class that contains a TextField. In this case, the TextField default constructor is just fine for my needs, as it supplies it with some default...
I'm writing a program that (currently) uses a console text field thing for "graphical output" (the actual graphics are not important to me and will be rewritten later when I actually have the...
Why don't you make FlagF an inline function instead?
Problem solved by sticking the function definitions above the macro.
Okay, I managed to eliminate that problem by commenting out the following in a header file (yes, if you haven't noticed, I'm using the example code from this):
#define DEBUG_NEW new(__FILE__,...
The following code:
inline void * __cdecl operator new(unsigned int size,
const char *file, int line)
{
void *ptr = (void *)malloc(size);
AddTrack((DWORD)ptr, size, file, line);...
I'm trying to get Dev-C++ 4.9.9.2 to do profile analysis on my code. It isn't working. Here is my procedure:
1. Open arbitrary project.
2. Click Execute -> Profile Analysis
3. "Compile for...
Here is some code that may be educational:
class thing {
thing(char * str) {
/* do stuff*/
};
};
struct memptr {
I don't think you need "sphere * todraw" as an argument to the draw() function; take it out of the definition.
Sorry, I'm being incoherent. I can't speak English at the moment, apparently; only C....
Is it possible to do something functionally similar to the following?
inline MemPtr operator new(size_t _size, MemoryPile &from) {
return from.MP_malloc(_size);
};
The program demands that...
Codeplug, why are you such a genius? It's disgusting. Thanks.
It'd be really, really nice if someone could address this problem:
class MemoryPile {
vector<MemoryChunk> blocks; // vector of allocation blocks
// for some reason I'm getting...
Yes, you're right. A variable representing a string (in old-school C style, which you're using) is not really a string per se but a pointer to a character array. If you were to double-dereference day...
I have heard that memory fragmentation can be a problem in memory-munching programs, and I have also heard that garbage collection (if that's the correct term) works wonders for it. So, since C++ has...
Yoink. You're a genius. Thanks a bunch.
So I'm abusing C++ in strange and wonderful ways, and I want to write a function like this:
void Log(char *filename, char *str, ...);
This function would open a file specified by filename and...