Search:

Type: Posts; User: Orborde

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Thread: Make problem

    by Orborde
    Replies
    6
    Views
    5,655

    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,655

    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,655

    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,655

    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,655

    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
    6,206

    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
    6,206

    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
    1,010

    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,685

    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
    1,196

    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
    2,018

    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,523

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

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

    Problem solved by sticking the function...

    Problem solved by sticking the function definitions above the macro.
  14. Replies
    2
    Views
    7,606

    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
    7,606

    "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
    6,109

    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
    2,269

    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,814

    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
    2,786

    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
    2,786

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

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

    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
    939

    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
    2,786

    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
    2,083

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

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

    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