Search:

Type: Posts; User: Florian

Page 1 of 2 1 2

Search: Search took 0.01 seconds; generated 20 minute(s) ago.

  1. That throws a warning for me: $ g++ -Wall...

    That throws a warning for me:



    $ g++ -Wall -pedantic -O0 -g -std=c++14 main.cpp
    main.cpp:3:12: warning: ‘k’ initialized and declared ‘extern’
    extern int k = 898;
    ^
  2. Ui::Notepad and ::Notepad are seperate classes. ...

    Ui::Notepad and ::Notepad are seperate classes.

    I believe Ui::Notepad contains the generated UI code, but i am not that familiar with Qt.
  3. Replies
    3
    Views
    2,831

    I believe you need to have the memory allocated...

    I believe you need to have the memory allocated aligned to 32 bytes.

    For more information:

    VMOVAPD

    EDIT:

    Hmm, I am not sure anymore. Does not hurt to try?
  4. I think you mean a monospace font. Like this: ...

    I think you mean a monospace font. Like this:



    This is a monospace font.
  5. Replies
    13
    Views
    1,216

    CMake has support for MinGW. And besides...

    CMake has support for MinGW. And besides Codeblocks, there is also Netbeans/Eclipse.
  6. nvm did not read

    nvm did not read
  7. Replies
    17
    Views
    5,062

    Not with standard C(++).

    Not with standard C(++).
  8. Replies
    2
    Views
    740

    What have you done so far?

    What have you done so far?
  9. The same way as you initialize x in class A. ...

    The same way as you initialize x in class A.



    B::B() : a(5)
  10. I believe tab size is dependent on the file...

    I believe tab size is dependent on the file editor with which you are reading the file. There is no system wide tab size.
  11. Replies
    5
    Views
    1,370

    Thank you both for your replies! phantomotap,...

    Thank you both for your replies!

    phantomotap, clearly i need read up a bit on template specialization. Despite that, i understand your suggestions and your example, i was hoping to prevent using...
  12. Replies
    5
    Views
    1,370

    Thanks, it works! Atleast with the examples it...

    Thanks, it works! Atleast with the examples it works on both compilers.

    But, it does not work with the real thing, and i am probably holding back things important to the problem.

    So here is the...
  13. Replies
    5
    Views
    1,370

    Template method specilization

    Hello,

    I am writing a C++ (using C++11/0x) wrapper for Lua 5.2.

    When i saw the following Lua API functions, i thought i had a genius way of exposing them to C++:

    int lua_toboolean(int...
  14. Replies
    4
    Views
    5,026

    That is entirely implementation defined. Tell us...

    That is entirely implementation defined. Tell us more about what operating system you are using, and if you know what it means, what kind of terminal emulator.
  15. Replies
    20
    Views
    3,384

    Compiled with G++ 4.6: g++ -std=c++0x...

    Compiled with G++ 4.6:



    g++ -std=c++0x -Wall -pedantic main.cpp -o main -g


    Your programs ends with a segmentation fault:
  16. Thread: X-Encrypter

    by Florian
    Replies
    2
    Views
    1,193

    See this bit of code: std::string...

    See this bit of code:



    std::string filename("long\path\to\file.txt");

    const char* filename_str = filename.c_str();

    fstream file(filename_str);
  17. To access a non-default constructor of a class...

    To access a non-default constructor of a class member:



    class test {
    private:
    std::string name;
    public
    test();
    ~test();
  18. Replies
    2
    Views
    1,171

    -snip- Nevermind.

    -snip-

    Nevermind.
  19. man fflush (http://linux.die.net/man/3/fflush)

    man fflush
  20. Replies
    1
    Views
    2,248

    From the documentation: Using the macro...

    From the documentation:



    Using the macro JS_ARGV_CALLEE i can obtain a JSFunction* in the callback, which points to the same object returned by:



    JSFunction * JS_DefineFunction(JSContext...
  21. Replies
    1
    Views
    2,248

    Spidermonkey wrapper library callbacks

    Hello,

    I am using GCC 4.5 (on Linux) with Boost 1.43.0 and C++0X to create a C++0X "worthy" wrapper library for the SpiderMonkey Java/ECMAscript engine.

    However, i am running in to a problem.
    ...
  22. Replies
    7
    Views
    5,981

    Qt has Qt Designer, it allows you create a GUI...

    Qt has Qt Designer, it allows you create a GUI using drag and drop. Search with Google for screenshots and more information about Qt.
  23. Thread: Function-doubt

    by Florian
    Replies
    9
    Views
    1,490

    Specifying void in a functions argument list does...

    Specifying void in a functions argument list does not make it argument for that function, it only says that the function takes no arguments. Thats all.
  24. Well... i... uhm... *reasserts himself* ...

    Well... i... uhm...

    *reasserts himself*

    Thank you Salem, i will examine my code closer from now on, and no longer bother the good people of this board with my shameful mistake.
  25. So i managed to create a much smaller program...

    So i managed to create a much smaller program with threads and works just fine.



    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <unistd.h>
    #include <sys/stat.h>...
Results 1 to 25 of 38
Page 1 of 2 1 2