Search:

Type: Posts; User: benshi

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    1,830

    Sorry... its ncurses related, not c++... So...

    Sorry... its ncurses related, not c++...
    So hopefully i will never link two object files containing a main function.
    After all, i stick to it, ncurses programs are difficult to handle, especially,...
  2. Replies
    11
    Views
    1,830

    At least i can now understand why this worked....

    At least i can now understand why this worked. Its a kind of c++ easteregg ;)
  3. Replies
    11
    Views
    1,830

    Ok, i think its strange, but maybe there might...

    Ok,
    i think its strange, but maybe there might be a reason for this behaviour. It's ok, shall it compile, i dont mind.
    Ben
  4. Replies
    11
    Views
    1,830

    The code is very simple: withoutmain.cpp ...

    The code is very simple:
    withoutmain.cpp





    To compile install the ncurses++ libraries and enter the following command:
    g++ withoutmain.cpp -lncurses++ -lpanel
    ->You'll get an executable...
  5. Replies
    11
    Views
    1,830

    The ncurses libraries are very strange, i had...

    The ncurses libraries are very strange, i had quite often some problems with them. You cant trust them, i think the vast usage of makros is their problem, but i cant say what really happend there.
  6. Replies
    11
    Views
    1,830

    Compiled without a main function

    Hello,
    i compiled and linked an executable program using some ncurses++ libraries.
    After adding quellcode with a main function and compiling, it still worked.
    Though i dont have a problem with...
  7. Replies
    2
    Views
    1,637

    Great thanks for your answer, now it works all...

    Great thanks for your answer, now it works all fine :).
  8. Replies
    2
    Views
    1,637

    Problems using/creating a shared library

    Hello,
    recently i tried to compile a program using a library i had created following a short instructed tutorial - without success.
    To get the library from the file special.cpp i had used the...
  9. Replies
    4
    Views
    3,332

    Thank you a lot, that was my mistake and i'm...

    Thank you a lot,
    that was my mistake and i'm sorry, that i left out the definition of record, which was a struct including a string.
    Ben
  10. Replies
    4
    Views
    3,332

    Hi, thanks for the answer, but i don't think i...

    Hi, thanks for the answer, but i don't think i will ever be -1, cause the decremention of i only is applied, after every loop, so it wont even be applied for i being 0 at the beginning.

    edit: it...
  11. Replies
    4
    Views
    3,332

    glibc invalid pointer error

    Hello,
    after Compilation with the gnu compiler ( g++-4.2 dbtest.cpp -Wall -pedantic -Wextra -o test -g ) and running the Program, i get the following error:


    *** glibc detected *** ./test:...
  12. Replies
    10
    Views
    1,387

    Sorry, but this is just too much code, next try...

    Sorry, but this is just too much code, next try to remove parts which dont add anything
    to the output of the error messages.
    I got also one improvement for you:
    remove the parantheses behind every...
  13. Replies
    9
    Views
    1,248

    Hi again, the code now compiles flawlessly....

    Hi again,
    the code now compiles flawlessly. Great thanks: you really showed me, how such a problem
    is structured.
    Ben
  14. Replies
    9
    Views
    1,248

    Hi anon, this seems to be a good solution to me,...

    Hi anon,
    this seems to be a good solution to me, you really understood, what i wanted to archieve
    and you found my logical mistake.
    Thanks a lot to all of you,
    Ben
  15. Replies
    9
    Views
    1,248

    Hi Mario, Obviously there is no problem in that...

    Hi Mario,
    Obviously there is no problem in that circular relationship, as the list is not nescessarily filled with objects.

    i appreciate to what you have said, although i think, that this is not...
  16. Replies
    9
    Views
    1,248

    Hi, thanks for your answer. I gave up an...

    Hi,
    thanks for your answer. I gave up an definend all member functions, despite of them being useless in the main class.
    But back to the problem, ill try to explain it again. The code given by:

    ...
  17. Replies
    9
    Views
    1,248

    Hi, i admit, that the task sounds a bit odd, but...

    Hi,
    i admit, that the task sounds a bit odd, but the idea is, that

    list<isamess> messies;
    is replaced in the implementation of the class:


    class tidyup{
    virtual int tutnix(); ...
  18. Replies
    9
    Views
    1,248

    Declaration of virtual class template list

    Hello C-mates,
    recently i rushed into the syntax of virtual funktion declaration and, unbelievabel, i declared
    some pure virtual funktions in a class. Besides, i declared some variables in that...
  19. Great thanks to all of you, your explainations...

    Great thanks to all of you, your explainations and suggestions are very helpful, letting me understand the code a bit better. I agree that it would be easier to put all implementations in the...
  20. Lots of thanks to both of you. You really helped...

    Lots of thanks to both of you. You really helped me out of it, now all works fine.
    By the way:
    Merry Christmas to whom it may concern,
    Ben
  21. Thanks for your help, i removed all forward...

    Thanks for your help, i removed all forward declarations, but this made it even worse. Now the compiler claims that cyear wasn't declared although i included the header (see above, i didn't change...
  22. incomplete type error despite complete definition

    Hello,
    i'm frustrating a bit with the following errors and warnings. Despite including the right header properly (at least i hope so), the compiler is complaining about incomplete/undefined types....
  23. Replies
    44
    Views
    42,238

    Thanks for your answer, although it is not...

    Thanks for your answer, although it is not possible.
  24. Replies
    44
    Views
    42,238

    how to delete void* pointer

    Hello,
    is it possible to delete a void pointer, without explicitly typecasting it? I know the size of the memory to free, but not the type of the pointer. Example with typecasting:


    int main(){...
  25. Thanks

    Hello Guys.
    Sorry for not answering for quite a while, due to some problems related to my internet connection, and great thanks for all answers,
    Ben
Results 1 to 25 of 30
Page 1 of 2 1 2