| | |
Problem compiling
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Sep 2007
Posts: 56
Reputation:
Solved Threads: 0
Hello, I'm following this tutorial http://fox-toolkit.net/cgi-bin/wiki...._Simple_Window
To learn how to make gui programs using the fox toolkit, but I can't get it to compile.
This is what I have in main.cpp
This is what I have in mywindow.h
But I'm getting these errors
I've searched ,but I can't figure out the answer.
I'm using windows with codeblocks and mingw.
To learn how to make gui programs using the fox toolkit, but I can't get it to compile.
This is what I have in main.cpp
C++ Syntax (Toggle Plain Text)
#include <fx.h> #include "mywindow.h" FXDEFMAP(MyWindow) MyWindowMap[]={0 }; FXIMPLEMENT(MyWindow,FXMainWindow,MyWindowMap,ARRAYNUMBER(MyWindowMap)); int main(int argc,char ** argv) { FXApp application("Tutorial #1","FOX Tutorials"); application.init(argc,argv); new MyWindow(&application); application.create(); return application.run(); }
C++ Syntax (Toggle Plain Text)
class MyWindow : public FXMainWindow { FXDECLARE(MyWindow) private: MyWindow() {} public: MyWindow(FXApp *); virtual ~MyWindow(); virtual void create(); }; void MyWindow::create(){ FXMainWindow::create(); show(PLACEMENT_SCREEN); }
C++ Syntax (Toggle Plain Text)
objs\main.o:main.cpp:(.text+0x376): undefined reference to `MyWindow::MyWindow(FX::FXApp*)' objs\main.o:main.cpp:(.rdata$_ZTV8MyWindow[vtable for MyWindow]+0x20): undefined reference to `MyWindow::~MyWindow()' objs\main.o:main.cpp:(.rdata$_ZTV8MyWindow[vtable for MyWindow]+0x24): undefined reference to `MyWindow::~MyWindow()' collect2: ld returned 1 exit status
I'm using windows with codeblocks and mingw.
Last edited by curt22; Dec 4th, 2007 at 5:14 pm.
•
•
Join Date: Sep 2007
Posts: 56
Reputation:
Solved Threads: 0
sorry. Here is the link:
http://fox-toolkit.net/cgi-bin/wiki...._Simple_Window
Also I copyed and pasted the example code like it said to.
http://fox-toolkit.net/cgi-bin/wiki...._Simple_Window
Also I copyed and pasted the example code like it said to.
•
•
Join Date: Sep 2007
Posts: 56
Reputation:
Solved Threads: 0
I am linking with C:\fox\fox-1.6.31\lib\libFOXD-1.6.a.
Also the download is working for me you can get it here:
http://www.fox-toolkit.org/download.html
(I am using version 1.6.31)
Also the download is working for me you can get it here:
http://www.fox-toolkit.org/download.html
(I am using version 1.6.31)
curt22: if you re-read that tutorial you will see where it talks about mywindow.cpp, located about 3/4th down in the tutorial.
•
•
•
•
The only thing left to do, is to implement our "MyWindow" class ...
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
![]() |
Similar Threads
- Beginner problem compiling with javac (Java)
- Problem compiling with Dev-C++ (C++)
- C++ linking problem (C++)
- Problem Compiling Program (Java)
- Another "cannot find symbol" compiling error (Java)
Other Threads in the C++ Forum
- Previous Thread: How to represent a space and a tab?
- Next Thread: Need help on pointers/classes/arrays
| Thread Tools | Search this Thread |
api array arrays based binary bitmap c++ c/c++ calculator char char* class code coding compile console conversion count data database delete deploy desktop developer dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game getline givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int java lib linkedlist linker list loop looping loops map math matrix memory multiple news node number numbertoword output pointer problem program programming project python random read recursion recursive reference rpg sorting string strings temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






