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,...
Type: Posts; User: benshi
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,...
At least i can now understand why this worked. Its a kind of c++ easteregg ;)
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
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...
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.
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...
Great thanks for your answer, now it works all fine :).
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...
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
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...
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:...
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...
Hi again,
the code now compiles flawlessly. Great thanks: you really showed me, how such a problem
is structured.
Ben
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
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...
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:
...
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(); ...
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...
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...
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
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...
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....
Thanks for your answer, although it is not possible.
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(){...
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