Non-standard header extension

General questions regarding the usage of CodeLite
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Non-standard header extension

Post by eranif »

You did not ask this on the forum ;)

I am getting notifications for every post on this forum, and usually, I try to answer asap

Eran
Make sure you have read the HOW TO POST thread
SteelRat
CodeLite Enthusiast
Posts: 17
Joined: Sat Dec 07, 2013 11:51 am
Genuine User: Yes
IDE Question: C++
Location: Russia
Contact:

Re: Non-standard header extension

Post by SteelRat »

Build failed. =(

Code: Select all

[ 62%] Building CXX object DatabaseExplorer/CMakeFiles/DatabaseExplorer.dir/MySqlType.cpp.o
/home/steelrat/development/codelite-codelitegit/codelite_make/cl_make_generator_app.cpp: In member function ‘void clMakeGeneratorApp::Error(const wxString&)’:
/home/steelrat/development/codelite-codelitegit/codelite_make/cl_make_generator_app.cpp:136:32: error: ‘wxFprintf’ was not declared in this scope
     wxFprintf(stderr, "%s\n", e);
                                ^
/home/steelrat/development/codelite-codelitegit/codelite_make/cl_make_generator_app.cpp: In member function ‘void clMakeGeneratorApp::Notice(const wxString&)’:
/home/steelrat/development/codelite-codelitegit/codelite_make/cl_make_generator_app.cpp:144:36: error: ‘wxFprintf’ was not declared in this scope
         wxFprintf(stderr, "%s\n", e);
                                    ^
/home/steelrat/development/codelite-codelitegit/codelite_make/cl_make_generator_app.cpp: In member function ‘void clMakeGeneratorApp::Info(const wxString&)’:
/home/steelrat/development/codelite-codelitegit/codelite_make/cl_make_generator_app.cpp:153:36: error: ‘wxFprintf’ was not declared in this scope
         wxFprintf(stdout, "%s\n", e);
                                    ^
/home/steelrat/development/codelite-codelitegit/codelite_make/cl_make_generator_app.cpp: In member function ‘void clMakeGeneratorApp::Out(const wxString&)’:
/home/steelrat/development/codelite-codelitegit/codelite_make/cl_make_generator_app.cpp:159:25: error: ‘wxPrintf’ was not declared in this scope
     wxPrintf("%s\n", msg);
                         ^
make[2]: *** [codelite_make/CMakeFiles/codelite-make.dir/cl_make_generator_app.cpp.o] Error 1
make[1]: *** [codelite_make/CMakeFiles/codelite-make.dir/all] Error 2
[ 62%] Building CXX object DatabaseExplorer/CMakeFiles/DatabaseExplorer.dir/GUI.cpp.o
All other built successfully, but link failed.
And i don't understand why, as i see you did not changed this code and i did "make clean".
-----------------------
Core2Duo E6750, 6Gb RAM, Ubuntu 12.04, CodeLite 5.3-110
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Non-standard header extension

Post by eranif »

Try adding

Code: Select all

#include <wx/wxcrtvararg.h>
although I don't understand why it fails...

Eran
Make sure you have read the HOW TO POST thread
SteelRat
CodeLite Enthusiast
Posts: 17
Joined: Sat Dec 07, 2013 11:51 am
Genuine User: Yes
IDE Question: C++
Location: Russia
Contact:

Re: Non-standard header extension

Post by SteelRat »

That was my fault. I forget to reset PATH to another wxWidgets after reboot. It is all ok now, thank you!
But! =)
If i have three files a.h, a.ipp and a.cpp - swapping is going between .h and .cpp only. How about to popup menu to select which one is needed? As I have said Visual Assist has this feature - very useful.
-----------------------
Core2Duo E6750, 6Gb RAM, Ubuntu 12.04, CodeLite 5.3-110
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Non-standard header extension

Post by eranif »

This is now also supported in git head
Do git pull and try it again

Eran
Make sure you have read the HOW TO POST thread
SteelRat
CodeLite Enthusiast
Posts: 17
Joined: Sat Dec 07, 2013 11:51 am
Genuine User: Yes
IDE Question: C++
Location: Russia
Contact:

Re: Non-standard header extension

Post by SteelRat »

Cool, it works! Only after swapping to header, but it does not matter.
-----------------------
Core2Duo E6750, 6Gb RAM, Ubuntu 12.04, CodeLite 5.3-110
Post Reply