Search:

Type: Posts; User: Orborde

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: Make problem

    by Orborde
    Replies
    6
    Views
    5,310

    Hm...problem "solved" with $(CC)...

    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...
  2. Thread: Make problem

    by Orborde
    Replies
    6
    Views
    5,310

    Another question: How do I modify environment...

    Another question: How do I modify environment variables, assuming there are any on Windoze?
  3. Thread: Make problem

    by Orborde
    Replies
    6
    Views
    5,310

    Okay, I'll go through the list: 1) Settings in...

    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...
  4. Thread: Make problem

    by Orborde
    Replies
    6
    Views
    5,310

    Mmkay...I see what you're saying... However, I...

    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...
  5. Thread: Make problem

    by Orborde
    Replies
    6
    Views
    5,310

    Make problem

    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...
  6. Replies
    3
    Views
    4,600

    The idea is that there are two sources of...

    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...
  7. Replies
    3
    Views
    4,600

    Encryption Key Generator

    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...
  8. Replies
    2
    Views
    870

    Crazy Games with Inheritance

    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...
  9. Replies
    5
    Views
    1,386

    For one thing, 500^3/1024/1024 = 238 MEGABYTES OF...

    For one thing, 500^3/1024/1024 = 238 MEGABYTES OF RAM.
  10. Replies
    2
    Views
    763

    Constructor problem

    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...
  11. Replies
    1
    Views
    1,275

    Architecture Question

    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...
  12. Replies
    6
    Views
    1,315

    Why don't you make FlagF an inline function...

    Why don't you make FlagF an inline function instead?
  13. Replies
    2
    Views
    6,212

    Problem solved by sticking the function...

    Problem solved by sticking the function definitions above the macro.
  14. Replies
    2
    Views
    6,212

    Okay, I managed to eliminate that problem by...

    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__,...
  15. Replies
    2
    Views
    6,212

    "Non-function" error

    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);...
  16. Replies
    0
    Views
    4,889

    Dev-C++ Profile Analysis

    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...
  17. Replies
    10
    Views
    1,686

    Here is some code that may be educational: ...

    Here is some code that may be educational:


    class thing {
    thing(char * str) {
    /* do stuff*/
    };
    };

    struct memptr {
  18. Replies
    1
    Views
    2,269

    I don't think you need "sphere * todraw" as an...

    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....
  19. Replies
    4
    Views
    1,858

    Is it possible to do something functionally...

    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...
  20. Replies
    4
    Views
    1,858

    Codeplug, why are you such a genius? It's...

    Codeplug, why are you such a genius? It's disgusting. Thanks.
  21. Replies
    4
    Views
    1,858

    It'd be really, really nice if someone could...

    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...
  22. Replies
    4
    Views
    791

    Yes, you're right. A variable representing a...

    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...
  23. Replies
    4
    Views
    1,858

    Garbage Collection

    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...
  24. Replies
    2
    Views
    1,496

    Yoink. You're a genius. Thanks a bunch.

    Yoink. You're a genius. Thanks a bunch.
  25. Replies
    2
    Views
    1,496

    Variable Argument List Passing

    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...
Results 1 to 25 of 28
Page 1 of 2 1 2