Crystal Space
Welcome, Guest. Please login or register.
July 30, 2014, 08:13:53 am

Login with username, password and session length
Search:     Advanced search
9009 Posts in 2047 Topics by 8259 Members
Latest Member: Robinfallon
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  A little confused.
« previous next »
Pages: [1] Print
Author Topic: A little confused.  (Read 2692 times)
HeeHaw
Newbie
*
Posts: 2


View Profile
« on: July 27, 2005, 04:33:36 am »

As there _any_ way I can compile a CrystalSpace app without having to resort to the whole Jam / Makefile mess?

I would've thought something like

CENSORCED@CENSORED /d/dir/dir/dir
$ gcc simple1.cpp `cs-config --cflags --cxxflags --libs`

would be enough. cs-config outputs this with those settings
                 
-I/usr/local/include   
-L/usr/local/lib -lcstool -lcsgfx  -lcsgeom -lcsutil -lzlib  -lm -L/D/CrystalSpaceLibs/lib -L/D/CrystalSpaceLibs/lib/mingw-gcc-3.4.2 -L/usr/local/lib -L/usr/lib/w32api -lgdi32 -lshell32

but all I get are a string of unresolved symbols. In both GNU/Linux & MingW/MSYS
Logged
jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #1 on: July 27, 2005, 05:23:39 am »

As there _any_ way I can compile a CrystalSpace app without having to resort to the whole Jam / Makefile mess?

I would've thought something like

CENSORCED@CENSORED /d/dir/dir/dir
$ gcc simple1.cpp `cs-config --cflags --cxxflags --libs`

would be enough. cs-config outputs this with those settings
                 
-I/usr/local/include   
-L/usr/local/lib -lcstool -lcsgfx  -lcsgeom -lcsutil -lzlib  -lm -L/D/CrystalSpaceLibs/lib -L/D/CrystalSpaceLibs/lib/mingw-gcc-3.4.2 -L/usr/local/lib -L/usr/lib/w32api -lgdi32 -lshell32

but all I get are a string of unresolved symbols. In both GNU/Linux & MingW/MSYS

First of all. Using jam is rather easy and it really is the best way to do this.

But about your problem. What errors are you getting exactly?

Greetings,
Logged
HeeHaw
Newbie
*
Posts: 2


View Profile
« Reply #2 on: July 27, 2005, 07:33:24 am »

I understand Jam is easier, but I'd rather not get overly complex (not in terms of difficulty, just overkill) for a such a simple project.

As for the errors, it just goes on like this.

just goes on with stuff like that, had to cut it short because of the 20,000 char limit.

D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.text+0x29a8):csevent.cpp: undefined reference to `operator delete(void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.text+0x2ad1):csevent.cpp: undefined reference to `operator delete(void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.text+0x2b1c):csevent.cpp: undefined reference to `operator delete(void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.text+0x2b56):csevent.cpp: undefined reference to `operator delete[](void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.text+0x2c08):csevent.cpp: undefined reference to `operator delete(void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.text+0x2ca8):csevent.cpp: undefined reference to `operator delete(void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.text+0x2d48):csevent.cpp: undefined reference to `operator delete(void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.text+0x2efd):csevent.cpp: undefined reference to `operator delete(void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.text+0x2f4b):csevent.cpp: undefined reference to `operator delete(void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.text+0x2f94):csevent.cpp: more undefined references to `operator delete(void*)' follow
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.text+0x308c):csevent.cpp: undefined reference to `operator delete[](void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.text+0x30a7):csevent.cpp: undefined reference to `operator delete[](void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.text+0x31ec):csevent.cpp: undefined reference to `operator new(unsigned int)'
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.text+0x33a4):csevent.cpp: undefined reference to `operator new(unsigned int)'
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.text+0x341a):csevent.cpp: undefined reference to `operator new(unsigned int)'
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.text+0x342e):csevent.cpp: undefined reference to `operator new[](unsigned int)'
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.text+0x356b):csevent.cpp: undefined reference to `operator new(unsigned int)'
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.text+0x35da):csevent.cpp: undefined reference to `operator new(unsigned int)'
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.text+0x371b):csevent.cpp: undefined reference to `operator new(unsigned int)'
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.text+0x378e):csevent.cpp: undefined reference to `operator new(unsigned int)'
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.text+0x38fe):csevent.cpp: undefined reference to `operator new(unsigned int)'
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.text+0x3966):csevent.cpp: more undefined references to `operator new(unsigned int)' follow
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.text+0x2c2c):csevent.cpp: undefined reference to `operator delete(void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.rdata$_ZTI7csEvent[typeinfo for csEvent]+0x0):csevent.cpp: undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.rdata$_ZTI6iEvent[typeinfo for iEvent]+0x0):csevent.cpp: undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.rdata$_ZTI11csPoolEvent[typeinfo for csPoolEvent]+0x0):csevent.cpp: undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.rdata$_ZTV6iEvent[vtable for iEvent]+0x8):csevent.cpp: undefined reference to `__cxa_pure_virtual'
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.rdata$_ZTV6iEvent[vtable for iEvent]+0xc):csevent.cpp: undefined reference to `__cxa_pure_virtual'
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.rdata$_ZTV6iEvent[vtable for iEvent]+0x10):csevent.cpp: undefined reference to `__cxa_pure_virtual'
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.rdata$_ZTV6iEvent[vtable for iEvent]+0x14):csevent.cpp: undefined reference to `__cxa_pure_virtual'
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.rdata$_ZTV6iEvent[vtable for iEvent]+0x18):csevent.cpp: undefined reference to `__cxa_pure_virtual'
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.rdata$_ZTV6iEvent[vtable for iEvent]+0x1c):csevent.cpp: more undefined references to `__cxa_pure_virtual' follow
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.text$_ZN11csPoolEventD0Ev[csPoolEvent::~csPoolEvent()]+0x29):csevent.cpp: undefined reference to `operator delete(void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(csevent.o)(.text$_ZN11csPoolEventD0Ev[csPoolEvent::~csPoolEvent()]+0x4e):csevent.cpp: undefined reference to `operator delete(void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0x2aa):plugldr.cpp: undefined reference to `operator delete[](void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0x2bc):plugldr.cpp: undefined reference to `operator delete(void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0x2e4):plugldr.cpp: undefined reference to `operator delete[](void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0x339):plugldr.cpp: undefined reference to `operator delete[](void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0x34b):plugldr.cpp: undefined reference to `operator delete(void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0x373):plugldr.cpp: undefined reference to `operator delete[](void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0x3c9):plugldr.cpp: undefined reference to `operator delete[](void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0x3db):plugldr.cpp: undefined reference to `operator delete(void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0x403):plugldr.cpp: undefined reference to `operator delete[](void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0x49e):plugldr.cpp: undefined reference to `operator new(unsigned int)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0x853):plugldr.cpp: undefined reference to `operator new[](unsigned int)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0x92c):plugldr.cpp: undefined reference to `operator delete(void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0x95a):plugldr.cpp: undefined reference to `operator delete[](void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0x96c):plugldr.cpp: undefined reference to `operator delete[](void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0xa5e):plugldr.cpp: undefined reference to `operator delete(void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0xaae):plugldr.cpp: undefined reference to `operator delete[](void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0xb54):plugldr.cpp: undefined reference to `operator delete[](void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0xb65):plugldr.cpp: undefined reference to `operator delete[](void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0xc8e):plugldr.cpp: undefined reference to `operator new(unsigned int)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0xed0):plugldr.cpp: undefined reference to `operator new(unsigned int)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0xf9f):plugldr.cpp: undefined reference to `operator new(unsigned int)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0x124d):plugldr.cpp: undefined reference to `operator new(unsigned int)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0x13aa):plugldr.cpp: undefined reference to `operator delete(void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0x13d9):plugldr.cpp: undefined reference to `operator delete[](void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0x13eb):plugldr.cpp: undefined reference to `operator delete[](void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0x1417):plugldr.cpp: undefined reference to `operator new(unsigned int)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0x1906):plugldr.cpp: undefined reference to `operator delete(void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0x1935):plugldr.cpp: undefined reference to `operator delete[](void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0x1947):plugldr.cpp: undefined reference to `operator delete[](void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0x1c51):plugldr.cpp: undefined reference to `operator delete(void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0x1c80):plugldr.cpp: undefined reference to `operator delete[](void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0x1c8e):plugldr.cpp: undefined reference to `operator delete[](void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.text+0x2a1):plugldr.cpp: undefined reference to `operator delete(void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(plugldr.o)(.rdata$_ZTI14csPluginLoader[typeinfo for csPluginLoader]+0x0):plugldr.cpp: undefined reference to `vtable for __cxxabiv1::__class_type_info'
D:/MSYS/1.0/local/lib/libcsutil.a(filesysconfig.o)(.text+0x347):filesysconfig.cpp: undefined reference to `operator new(unsigned int)'
D:/MSYS/1.0/local/lib/libcsutil.a(cfgmgr.o)(.text+0x1fd):cfgmgr.cpp: undefined reference to `operator new(unsigned int)'
D:/MSYS/1.0/local/lib/libcsutil.a(cfgmgr.o)(.text+0x324):cfgmgr.cpp: undefined reference to `operator delete(void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(cfgmgr.o)(.text+0xe31):cfgmgr.cpp: undefined reference to `operator new(unsigned int)'
D:/MSYS/1.0/local/lib/libcsutil.a(cfgmgr.o)(.text+0xe5b):cfgmgr.cpp: undefined reference to `operator new(unsigned int)'
D:/MSYS/1.0/local/lib/libcsutil.a(cfgmgr.o)(.text+0xea5):cfgmgr.cpp: undefined reference to `operator new(unsigned int)'
D:/MSYS/1.0/local/lib/libcsutil.a(cfgmgr.o)(.text+0xfa1):cfgmgr.cpp: undefined reference to `operator new(unsigned int)'
D:/MSYS/1.0/local/lib/libcsutil.a(cfgmgr.o)(.text+0xfcb):cfgmgr.cpp: undefined reference to `operator new(unsigned int)'
D:/MSYS/1.0/local/lib/libcsutil.a(cfgmgr.o)(.text+0x1015):cfgmgr.cpp: more undefined references to `operator new(unsigned int)' follow
D:/MSYS/1.0/local/lib/libcsutil.a(cfgmgr.o)(.text+0x1108):cfgmgr.cpp: undefined reference to `operator delete(void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(cfgmgr.o)(.text+0x1198):cfgmgr.cpp: undefined reference to `operator delete(void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(cfgmgr.o)(.text+0x1200):cfgmgr.cpp: undefined reference to `operator delete(void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(cfgmgr.o)(.text+0x1358):cfgmgr.cpp: undefined reference to `operator delete(void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(cfgmgr.o)(.text+0x13c0):cfgmgr.cpp: undefined reference to `operator delete(void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(cfgmgr.o)(.text+0x1518):cfgmgr.cpp: more undefined references to `operator delete(void*)' follow
D:/MSYS/1.0/local/lib/libcsutil.a(cfgmgr.o)(.text+0x1cd6):cfgmgr.cpp: undefined reference to `operator new(unsigned int)'
D:/MSYS/1.0/local/lib/libcsutil.a(cfgmgr.o)(.text+0x1dfe):cfgmgr.cpp: undefined reference to `operator new(unsigned int)'
D:/MSYS/1.0/local/lib/libcsutil.a(cfgmgr.o)(.text+0x1fc4):cfgmgr.cpp: undefined reference to `operator new(unsigned int)'
D:/MSYS/1.0/local/lib/libcsutil.a(cfgmgr.o)(.text+0x20a4):cfgmgr.cpp: undefined reference to `operator new(unsigned int)'
D:/MSYS/1.0/local/lib/libcsutil.a(cfgmgr.o)(.text+0x223a):cfgmgr.cpp: undefined reference to `operator new(unsigned int)'
D:/MSYS/1.0/local/lib/libcsutil.a(cfgmgr.o)(.text+0x237a):cfgmgr.cpp: more undefined references to `operator new(unsigned int)' follow
D:/MSYS/1.0/local/lib/libcsutil.a(cfgmgr.o)(.text+0x12a0):cfgmgr.cpp: undefined reference to `operator delete(void*)'
D:/MSYS/1.0/local/lib/libcsutil.a(cfgmgr.o)(.rdata$_ZTI23csConfigManagerIterator[typeinfo for csConfigManagerIterator]+0x0):cfgmgr.cpp: undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
Logged
jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #3 on: July 27, 2005, 08:33:05 am »

You should probably compile with g++ instead of gcc. g++ is the C++ compiler.
Let me know if that works.

Greetings,
Logged
Alexin
Guest


Email
« Reply #4 on: July 28, 2005, 07:28:57 am »

I'm not the person that started this thread, but was having the same problem. I wanted to report that

CENSORCED@CENSORED /dir/dir/dir
$ g++ simple1.cpp `cs-config --cflags --cxxflags --libs`

Worked perfectly for me. (The whole jam/make issue is still beyond my mere mortal ken, however. Something to learn later, as always.)
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 5.373 seconds with 16 queries.