Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
The first one depends on how you built wxWidgets and can look different. That's the directory where "setup.h" is included from.
The second path points to all other header files.
i just include "wx/wxprec.h" in all over the project .cpp files. and now i got only one error about main project file. by setting up Precompiled Headers
the only error is : Severity Code Description Project File Line Suppression State
Error C1083 Cannot open include file: 'wx/wxprec.h': No such file or directory cedar-logic c:\users\asad\documents\visual studio 2015\projects\cedar-logic\src\gui\MainApp.h 14
before opening project in VS 2015 Professional , I opened `x86 native tools` command prompt and run these commands.
cd %WXWIN%\build\msw
nmake /f makefile.vc USE_OPENGL=1 RUNTIME_LIBS=static
nmake /f makefile.vc BUILD=release USE_OPENGL=1 RUNTIME_LIBS=static
Error C1083 Cannot open include file: 'wx/wxprec.h': No such file or directory
This happens only for one source file and for the others it works? That would be very strange. Check that you haven't accidentally set different path settings for this one source file. What happens if you comment that line out?
before opening project in VS 2015 Professional , I opened `x86 native tools` command prompt and run these commands.
That's probably ok. But i would still try if building through the solution file works.
struct ApplicationSettings {
string gateLibFile;
string textFontFile;
string helpFile;
string lastDir;
unsigned int mainFrameWidth;
unsigned int mainFrameHeight;
int mainFrameLeft;
int mainFrameTop;
unsigned int timePerStep;
int refreshRate;
float wireConnRadius;
bool wireConnVisible;
bool gridlineVisible;
};
class MainApp : public wxApp {
public:
MainApp();
virtual bool OnInit();
public:
// crit section protects access to all of the arrays below
wxCriticalSection m_critsect;
// semaphore used to wait for the threads to exit, see MainFrame::OnQuit()
wxSemaphore m_semAllDone;
wxSemaphore simulate;
wxSemaphore readyToSend;
wxMutex mexMessages;
deque< klsMessage::Message > dGUItoLOGIC;
deque< klsMessage::Message > dLOGICtoGUI;
// Use a stopwatch for timing between step calls
wxStopWatch appSystemTime;
unsigned long timeStepMod;
// We need to have a map of libraries for palette organization, and knowledge
// of which one we are currently displaying. We also have a map of which gate
// belongs to which library (child to parent)
string currentLibrary;
LibraryParse libParser;
map < string, map < string, LibraryGate > > libraries;
map < string, string > gateNameToLibrary;
// the last exiting thread should post to m_semAllDone if this is true
// (protected by the same m_critsect)
bool m_waitingUntilAllDone;
my code works successfully, i just close VS and then again start it and open project from C:\Users\Asad\Documents\Visual Studio 2015\Projects\cedar-logic . build it successfully and than I start debugging and so on.
my code works successfully, i just close VS and then again start it and open project from C:\Users\Asad\Documents\Visual Studio 2015\Projects\cedar-logic . build it successfully and than I start debugging and so on.
Hello!
I tried to compile the code but I have been unable. Please, can you send me a source code copy to compile it under VS? Please include if possible the wx libraries you are uisng.
I have modified the component library but I need to modify and compile the code to improve some aspect of the gui.
If you want we can talk about new features and share solutions. The CEDAR LOGIC project is very interesting and it is a pity that it does not follow its development.