Too simple compile error to be found by me??!!!
God damn, I am getting nervously mad!!!
I try to compile my project and in the line: I get following compilation error:
Code:
In file included from COperationWIndow.h:27,
from CMainWindow.h:11,
from CMainWindow.cpp:1:
CMerchandizeBrowser.h:31: error: expected `)' before '*' token
CMerchandizeBrowser.h:31: error: expected `,' or `;' before '*' token
mingw32-make[1]: *** [debug/CMainWindow.o] Error 1
mingw32-make[1]: Leaving directory `C:/Documents and Settings/markofr/workspace/eROSystem'
mingw32-make: *** [debug] Error 2
I simply do not see what is wrong with this line of code. Can comeone help me please???!!! :crying::confused::mad:
Re: Too simple compile error to be found by me??!!!
You're mixing up class declaration and constructor declaration.
Code:
class MyClassName : public MyBaseClassName
{
public:
MyClassName(/*ctor params*/);
};
PS. This is a basic C++ issue which has nothing to do with Qt..
Re: Too simple compile error to be found by me??!!!
God damn, I will never change the code in drunk state again. :D
Re: Too simple compile error to be found by me??!!!
Quote:
Originally Posted by
MarkoSan
God damn, I will never change the code in drunk state again.
It's still better than ending with "it works but I don't know how" kind of code written directly in machine code. :)
(To avoid possible questions: no, it wasn't me.)
Re: Too simple compile error to be found by me??!!!
Quote:
Originally Posted by
jacek
It's still better than ending with "it works but I don't know how" kind of code written directly in machine code. :)
Isn't that how we all tended to finish our assembler assignments at university? At least that goes for me :o
Re: Too simple compile error to be found by me??!!!
Quote:
Originally Posted by
Methedrine
Isn't that how we all tended to finish our assembler assignments at university?
I wasn't talking about assembly. :p
I remember that once I was sitting till 4 am to make my FAT12 routines work. I think assembly is a really good way to learn to divide your code into subroutines, because otherwise you will get lost really fast.
Re: Too simple compile error to be found by me??!!!
Quote:
Originally Posted by
jacek
I wan't talking about assembly. :p
I remember that once I was sitting till 4 am to make my FAT12 routines work. I think assembly is a really good way to learn to divide your code into subroutines, because otherwise you will get lost really fast.
:D Assembly is the far the best language, but not in a drunk state. :D Subroutines in assembly can get weird names if you are drunk and programming in assembly.