Hello, I'm doing a simple application to test the C++ capabilities and to learn some  

 and have found an error that don't understand, I've search for a solution to this, but dont found a valid solution, I will explain my problem:
Using CodeBlocks to compile with MinGw I obtain the error "file not recognized: File format not recognized" when linking an header file for example:
#include <string>
//#include "aryan.h"
#ifndef DBWORKER_H_INCLUDED
#define DBWORKER_H_INCLUDED
using namespace std;
class DBWorker {
    public:
        DBWorker(string dbname);
        bool checkManufacturer(string manufacturer);
        bool checkCategory(string cat);
       // Aryan checkArticle(Aryan article, bool forceUpdate);
    private:
        bool createManufacturer(string manufacturer);
        bool createCategory(string cat);
        string dbname;
};
#endif // DBWORKER_H_INCLUDED
I've comment out all the "real code" of the class but the error persists 

 how can I repair this?
The complete log is this:
-------------- Build: Release in gTintargossPrices ---------------
Precompiling header: DBWorker.h
Precompiling header: csvparser.h
Compiling: aryanparser.cc
Compiling: csvparser.cpp
Precompiling header: aryan.h
Compiling: main.c
Compiling: DBWorker.cpp
Linking console executable: bin\Release\gTintargossPrices.exe
DBWorker.h.gch: file not recognized: File format not recognized
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 7 seconds)
0 errors, 0 warnings
DBWorker.h.gch is a file created by CodeBlocks from DBWorker.h.
Hope you can help me and thanks to all in advance 

Pd: I don't know if the problem is from codeblocks or from MinGW or inclusive from my own code 
