Pages: « 1 2 3 4 5 6 7 8 9 10 11 »
  Print  
Author Topic: Anaphase  (Read 92455 times)
Offline (Unknown gender) freezway
Reply #135 Posted on: April 14, 2010, 08:25:03 pm

Member
Joined: Dec 2009
Posts: 220

View Profile
/home/andrew/enigma/trunk/CompilerSource/cfile_parse/macro_functions.cpp||In function ‘bool preprocess_separately(std::string&)’:|
/home/andrew/enigma/trunk/CompilerSource/cfile_parse/macro_functions.cpp|109|error: invalid initialization of reference of type ‘unsigned int&’ from expression of type ‘size_t’|
/home/andrew/enigma/trunk/CompilerSource/cfile_parse/macro_functions.cpp|58|error: in passing argument 3 of ‘bool macro_function_parse(std::string, std::string, unsigned int&, std::string&, varray<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >&, int, int, bool)’|
||=== Build finished: 2 errors, 0 warnings ===|
Logged
if you drop a cat with buttered toast strapped to its back, which side lands down?
joshdreamland: our languages are based on the idea that it's going to end up FUBAR
/kick retep998
Offline (Male) Josh @ Dreamland
Reply #136 Posted on: April 14, 2010, 09:15:56 pm

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2950

View Profile Email
Resolved: Replaced pertinent instances of size_t and unsigned with "pt," typedefed as the former.
Re-check out if this affects you.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Male) retep998
Reply #137 Posted on: April 14, 2010, 09:49:39 pm

Member
Location: Where else?
Joined: Jan 2010
Posts: 248
MSN Messenger - retep998@charter.net AOL Instant Messenger - retep998 Yahoo Instant Messenger - retep998
View Profile Email
Can't you just make a makefile rather than a C::B project? :/
Furthermore, no one I've talked to is proficient enough in Make to write a makefile taking parameters to indicate which graphics system and window system to use (Like GRAPHICS=GL, or just _ instead of = if need be)
Logged
Offline (Female) IsmAvatar
Reply #138 Posted on: April 14, 2010, 10:15:53 pm

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 877

View Profile Email
The following is an example of non-erroring output:

Code: [Select]
$ java -jar lgm16b4.jar
Java Version: 10600 (1.6.0_15)
Loading lib files in /home/ismavatar/Desktop/enigma-dev/lgm16b4.jar
01_move.lgl 02_main1.lgl 03_main2.lgl 04_control.lgl
 05_score.lgl 06_extra.lgl 07_draw.lgl
SvnKit missing, corrupted, or unusable. Please download and place next to the enigma plugin in order to enable auto-update.
Initializing Enigma: Intializing Parsers.Probing for GCC...
GCC located. Path: `'
Successfully loaded GCC definitions
Unable to load plugin: jna.jar: null: Missing plugin entry point (LGM-Plugin)
Logged
Offline (Unknown gender) freezway
Reply #139 Posted on: April 14, 2010, 10:25:18 pm

Member
Joined: Dec 2009
Posts: 220

View Profile
now compiles on 64 bit linux.
Logged
if you drop a cat with buttered toast strapped to its back, which side lands down?
joshdreamland: our languages are based on the idea that it's going to end up FUBAR
/kick retep998
Offline (Unknown gender) freezway
Reply #140 Posted on: April 14, 2010, 10:30:19 pm

Member
Joined: Dec 2009
Posts: 220

View Profile
enigma compiles correctly, but LGM hangs on loading plugins. here is the output from the terminal
Code: [Select]
Java Version: 10600 (1.6.0_0)
Loading lib files in /home/andrew/enigma/trunk/lgm16b4.jar
01_move.lgl 02_main1.lgl 03_main2.lgl 04_control.lgl
 05_score.lgl 06_extra.lgl 07_draw.lgl
SvnKit missing, corrupted, or unusable. Please download and place next to the enigma plugin in order to enable auto-update.
Initializing Enigma: Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'compileEGMf': libcompileEGMf.so: cannot open shared object file: No such file or directory
at com.sun.jna.NativeLibrary.loadLibrary(NativeLibrary.java:164)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:237)
at com.sun.jna.NativeLibrary.getInstance(NativeLibrary.java:200)
at com.sun.jna.Native.register(Native.java:1013)
at org.enigma.backend.EnigmaStruct.<clinit>(EnigmaStruct.java:72)
at org.enigma.EnigmaRunner.initEnigmaLib(EnigmaRunner.java:97)
at org.enigma.EnigmaRunner.<init>(EnigmaRunner.java:73)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at org.lateralgm.main.LGM.loadPlugins(LGM.java:297)
at org.lateralgm.main.LGM.main(LGM.java:512)
Logged
if you drop a cat with buttered toast strapped to its back, which side lands down?
joshdreamland: our languages are based on the idea that it's going to end up FUBAR
/kick retep998
Offline (Male) retep998
Reply #141 Posted on: April 14, 2010, 10:44:22 pm

Member
Location: Where else?
Joined: Jan 2010
Posts: 248
MSN Messenger - retep998@charter.net AOL Instant Messenger - retep998 Yahoo Instant Messenger - retep998
View Profile Email
Are you sure you compiled the linux version, not the windows version?
Why don't you check if the .so file exists?
Logged
Offline (Unknown gender) freezway
Reply #142 Posted on: April 14, 2010, 11:01:43 pm

Member
Joined: Dec 2009
Posts: 220

View Profile
where would it be. i did a quick search and there are no .so files in my home folder.

actaully, it may have something to do with this:
Code: [Select]
Linking dynamic library: ../libcompileEGMf.so
/usr/bin/ld: .objs/cfile_parse/cfile_parse.o: relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
.objs/cfile_parse/cfile_parse.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
this was the end of my build log

EDIT: you need to add -fPIC to other options to get it to work. also, LGM now runs... but i cant use enigma. it says its now missing JNA

Code: [Select]
Java Version: 10600 (1.6.0_0)
Loading lib files in /home/andrew/enigma/trunk/lgm16b4.jar
01_move.lgl 02_main1.lgl 03_main2.lgl 04_control.lgl
 05_score.lgl 06_extra.lgl 07_draw.lgl
SvnKit missing, corrupted, or unusable. Please download and place next to the enigma plugin in order to enable auto-update.
Initializing Enigma: Intializing Parsers.Probing for GCC...
GCC located. Path: `'
Successfully loaded GCC definitions
Undefining _GLIBCXX_EXPORT_TEMPLATE
# 1 "blank.txt"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "blank.txt"
8dirs:
"/usr/include/c++/4.4/"
"/usr/include/c++/4.4/x86_64-linux-gnu/"
"/usr/include/c++/4.4/backward/"
"/usr/local/include/"
"/usr/lib/gcc/x86_64-linux-gnu/4.4.1/include/"
"/usr/lib/gcc/x86_64-linux-gnu/4.4.1/include-fixed/"
"/usr/include/x86_64-linux-gnu/"
"/usr/include/"
Successfully parsed ENIGMA's engine (0ms)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Initializing EDL Parser... Done.
Unable to load plugin: jna.jar: null: Missing plugin entry point (LGM-Plugin)
« Last Edit: April 14, 2010, 11:36:15 pm by freezway » Logged
if you drop a cat with buttered toast strapped to its back, which side lands down?
joshdreamland: our languages are based on the idea that it's going to end up FUBAR
/kick retep998
Offline (Male) Josh @ Dreamland
Reply #143 Posted on: April 15, 2010, 06:16:26 am

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2950

View Profile Email
freezway--
The ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ means it was successful. Running from LGM won't build the exe since the makefile isn't written; you'll have to build with Code::Blocks after you hit run.

I will add -fPIC to the Linux target. I don't understand why yours was the only one that complained about it.
Logged
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble
"I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
Offline (Unknown gender) freezway
Reply #144 Posted on: April 15, 2010, 09:27:50 am

Member
Joined: Dec 2009
Posts: 220

View Profile
when I use C::B to try to compile it I get errors, I believe I emailed them to joshy. I'll post them here.
Code: [Select]

-------------- Build: lin-debug in Game ---------------

Compiling: Graphics_Systems/OpenGL/GSblend.cpp
Compiling: Graphics_Systems/OpenGL/GScolors.cpp
Compiling: Graphics_Systems/OpenGL/GSenable.cpp
Compiling: Graphics_Systems/OpenGL/GSmiscextra.cpp
Compiling: Graphics_Systems/OpenGL/GSprmtvs.cpp
Compiling: Graphics_Systems/OpenGL/GSscreen.cpp
Compiling: Graphics_Systems/OpenGL/GSsprite.cpp
Compiling: Graphics_Systems/OpenGL/GSspriteadd.cpp
Compiling: Graphics_Systems/OpenGL/GSstdraw.cpp
Compiling: Graphics_Systems/OpenGL/GSsurface.cpp
Compiling: Graphics_Systems/OpenGL/OPENGLStd.cpp
Compiling: Graphics_Systems/OpenGL/graphics_object.cpp
WARNING: Can't read file's timestamp: /home/andrew/enigma/trunk/ENIGMAsystem/SHELL/Platforms/xlib/XLIBmain.cpp
Compiling: Platforms/xlib/XLIBwindow.cpp
Compiling: Preprocessor_Environment_Editable/IDE_EDIT_wildclass.cpp
Compiling: SHELLmain.cpp
In file included from /home/andrew/enigma/trunk/ENIGMAsystem/SHELL/SHELLmain.cpp:157:
/home/andrew/enigma/trunk/ENIGMAsystem/SHELL/initialize.h: In function ‘int initialize_everything()’:
/home/andrew/enigma/trunk/ENIGMAsystem/SHELL/initialize.h:62: error: ‘instdata’ was not declared in this scope
Process terminated with status 1 (0 minutes, 2 seconds)
1 errors, 0 warnings

also, heres a full output from LGM

Code: [Select]
Java Version: 10600 (1.6.0_0)
Loading lib files in /home/andrew/enigma/trunk/lgm16b4.jar
01_move.lgl 02_main1.lgl 03_main2.lgl 04_control.lgl
 05_score.lgl 06_extra.lgl 07_draw.lgl
SvnKit missing, corrupted, or unusable. Please download and place next to the enigma plugin in order to enable auto-update.
Initializing Enigma: Intializing Parsers.Probing for GCC...
GCC located. Path: `'
Successfully loaded GCC definitions
Undefining _GLIBCXX_EXPORT_TEMPLATE
# 1 "blank.txt"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "blank.txt"
8dirs:
"/usr/include/c++/4.4/"
"/usr/include/c++/4.4/x86_64-linux-gnu/"
"/usr/include/c++/4.4/backward/"
"/usr/local/include/"
"/usr/lib/gcc/x86_64-linux-gnu/4.4.1/include/"
"/usr/lib/gcc/x86_64-linux-gnu/4.4.1/include-fixed/"
"/usr/include/x86_64-linux-gnu/"
"/usr/include/"
Successfully parsed ENIGMA's engine (0ms)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Initializing EDL Parser... Done.
Unable to load plugin: jna.jar: null: Missing plugin entry point (LGM-Plugin)
time taken to load file: 24 ms
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: org.lateralgm.resources.Sprite$MaskShape cannot be cast to java.lang.Integer
at org.enigma.EnigmaWriter.populateSprites(EnigmaWriter.java:186)
at org.enigma.EnigmaWriter.populateStruct(EnigmaWriter.java:103)
at org.enigma.EnigmaWriter.prepareStruct(EnigmaWriter.java:95)
at org.enigma.EnigmaRunner.compile(EnigmaRunner.java:355)
at org.enigma.EnigmaRunner.actionPerformed(EnigmaRunner.java:391)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.AbstractButton.doClick(AbstractButton.java:374)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1688)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1732)
at java.awt.Component.processMouseEvent(Component.java:6108)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:5873)
at java.awt.Container.processEvent(Container.java:2105)
at java.awt.Component.dispatchEventImpl(Component.java:4469)
at java.awt.Container.dispatchEventImpl(Container.java:2163)
at java.awt.Component.dispatchEvent(Component.java:4295)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)
at java.awt.Container.dispatchEventImpl(Container.java:2149)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4295)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

about the -fPIC, maybe 64bit?
« Last Edit: April 15, 2010, 02:44:03 pm by freezway » Logged
if you drop a cat with buttered toast strapped to its back, which side lands down?
joshdreamland: our languages are based on the idea that it's going to end up FUBAR
/kick retep998
Offline (Male) RetroX
Reply #145 Posted on: April 15, 2010, 03:39:04 pm

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
Furthermore, no one I've talked to is proficient enough in Make to write a makefile taking parameters to indicate which graphics system and window system to use (Like GRAPHICS=GL, or just _ instead of = if need be)
Hello.
Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Male) RetroX
Reply #146 Posted on: April 15, 2010, 03:44:36 pm

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
Code: [Select]
-------------- Build: Release in compileEGMf ---------------

Compiling: cfile_parse/cfile_parse.cpp
Compiling: cfile_parse/cfile_parse_macros.cpp
Compiling: cfile_parse/cfile_pushing.cpp
Compiling: cfile_parse/cparse_components.cpp
Compiling: cfile_parse/cparse_shared.cpp
Compiling: cfile_parse/expression_evaluator.cpp
Compiling: cfile_parse/handle_letters.cpp
Compiling: cfile_parse/keyword_operator.cpp
Compiling: cfile_parse/macro_functions.cpp
Compiling: cfile_parse/main.cpp
Compiling: cfile_parse/skipping.cpp
Compiling: cfile_parse/template_handlers.cpp
Compiling: compiler/compile.cpp
Compiling: compiler/compile_includes.cpp
Compiling: compiler/output_locals.cpp
Compiling: compiler/pcs/pcs.cpp
Compiling: externs/externs.cpp
Compiling: externs/references.cpp
Compiling: gcc_interface/gcc_backend.cpp
Compiling: general/darray.cpp
Compiling: general/string.cpp
Compiling: general/textfile.cpp
Compiling: main.cpp
Compiling: parser/collect_variables.cpp
Compiling: parser/object_storage.cpp
Compiling: parser/parser.cpp
Compiling: parser/parser_components.cpp
Compiling: syntax/checkfile.cpp
Compiling: syntax/syntax.cpp
Compiling: varnames/varnames.cpp
Linking dynamic library: ../compileEGMf.so
/usr/bin/ld: .objs/cfile_parse/cfile_parse.o: relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
.objs/cfile_parse/cfile_parse.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 46 seconds)
0 errors, 0 warnings
Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Female) IsmAvatar
Reply #147 Posted on: April 15, 2010, 03:57:40 pm

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 877

View Profile Email
Quote from: freezway
LGM now runs... but i cant use enigma. it says its now missing JNA
No it doesn't. It says JNA is not a plugin. This is correct.
Logged
Offline (Unknown gender) freezway
Reply #148 Posted on: April 15, 2010, 07:03:04 pm

Member
Joined: Dec 2009
Posts: 220

View Profile
@retrox:
add -fPIC to build options > other options
Logged
if you drop a cat with buttered toast strapped to its back, which side lands down?
joshdreamland: our languages are based on the idea that it's going to end up FUBAR
/kick retep998
Offline (Male) RetroX
Reply #149 Posted on: April 15, 2010, 07:18:11 pm

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
-------------- Build: Release in compileEGMf ---------------

g++ -Wall  -O3 -O2 -Wall -DBUILD_DLL     -c /home/alex/enigma-dev/trunk/CompilerSource/cfile_parse/cfile_parse.cpp -o .objs/cfile_parse/cfile_parse.o
g++ -Wall  -O3 -O2 -Wall -DBUILD_DLL     -c /home/alex/enigma-dev/trunk/CompilerSource/cfile_parse/cfile_parse_macros.cpp -o .objs/cfile_parse/cfile_parse_macros.o
g++ -Wall  -O3 -O2 -Wall -DBUILD_DLL     -c /home/alex/enigma-dev/trunk/CompilerSource/cfile_parse/cfile_pushing.cpp -o .objs/cfile_parse/cfile_pushing.o
g++ -Wall  -O3 -O2 -Wall -DBUILD_DLL     -c /home/alex/enigma-dev/trunk/CompilerSource/cfile_parse/cparse_components.cpp -o .objs/cfile_parse/cparse_components.o
g++ -Wall  -O3 -O2 -Wall -DBUILD_DLL     -c /home/alex/enigma-dev/trunk/CompilerSource/cfile_parse/cparse_shared.cpp -o .objs/cfile_parse/cparse_shared.o
g++ -Wall  -O3 -O2 -Wall -DBUILD_DLL     -c /home/alex/enigma-dev/trunk/CompilerSource/cfile_parse/expression_evaluator.cpp -o .objs/cfile_parse/expression_evaluator.o
g++ -Wall  -O3 -O2 -Wall -DBUILD_DLL     -c /home/alex/enigma-dev/trunk/CompilerSource/cfile_parse/handle_letters.cpp -o .objs/cfile_parse/handle_letters.o
g++ -Wall  -O3 -O2 -Wall -DBUILD_DLL     -c /home/alex/enigma-dev/trunk/CompilerSource/cfile_parse/keyword_operator.cpp -o .objs/cfile_parse/keyword_operator.o
g++ -Wall  -O3 -O2 -Wall -DBUILD_DLL     -c /home/alex/enigma-dev/trunk/CompilerSource/cfile_parse/macro_functions.cpp -o .objs/cfile_parse/macro_functions.o
g++ -Wall  -O3 -O2 -Wall -DBUILD_DLL     -c /home/alex/enigma-dev/trunk/CompilerSource/cfile_parse/main.cpp -o .objs/cfile_parse/main.o
g++ -Wall  -O3 -O2 -Wall -DBUILD_DLL     -c /home/alex/enigma-dev/trunk/CompilerSource/cfile_parse/skipping.cpp -o .objs/cfile_parse/skipping.o
g++ -Wall  -O3 -O2 -Wall -DBUILD_DLL     -c /home/alex/enigma-dev/trunk/CompilerSource/cfile_parse/template_handlers.cpp -o .objs/cfile_parse/template_handlers.o
g++ -Wall  -O3 -O2 -Wall -DBUILD_DLL     -c /home/alex/enigma-dev/trunk/CompilerSource/compiler/compile.cpp -o .objs/compiler/compile.o
g++ -Wall  -O3 -O2 -Wall -DBUILD_DLL     -c /home/alex/enigma-dev/trunk/CompilerSource/compiler/compile_includes.cpp -o .objs/compiler/compile_includes.o
g++ -Wall  -O3 -O2 -Wall -DBUILD_DLL     -c /home/alex/enigma-dev/trunk/CompilerSource/compiler/output_locals.cpp -o .objs/compiler/output_locals.o
g++ -Wall  -O3 -O2 -Wall -DBUILD_DLL     -c /home/alex/enigma-dev/trunk/CompilerSource/compiler/pcs/pcs.cpp -o .objs/compiler/pcs/pcs.o
g++ -Wall  -O3 -O2 -Wall -DBUILD_DLL     -c /home/alex/enigma-dev/trunk/CompilerSource/externs/externs.cpp -o .objs/externs/externs.o
g++ -Wall  -O3 -O2 -Wall -DBUILD_DLL     -c /home/alex/enigma-dev/trunk/CompilerSource/externs/references.cpp -o .objs/externs/references.o
g++ -Wall  -O3 -O2 -Wall -DBUILD_DLL     -c /home/alex/enigma-dev/trunk/CompilerSource/gcc_interface/gcc_backend.cpp -o .objs/gcc_interface/gcc_backend.o
g++ -Wall  -O3 -O2 -Wall -DBUILD_DLL     -c /home/alex/enigma-dev/trunk/CompilerSource/general/darray.cpp -o .objs/general/darray.o
g++ -Wall  -O3 -O2 -Wall -DBUILD_DLL     -c /home/alex/enigma-dev/trunk/CompilerSource/general/string.cpp -o .objs/general/string.o
g++ -Wall  -O3 -O2 -Wall -DBUILD_DLL     -c /home/alex/enigma-dev/trunk/CompilerSource/general/textfile.cpp -o .objs/general/textfile.o
g++ -Wall  -O3 -O2 -Wall -DBUILD_DLL     -c /home/alex/enigma-dev/trunk/CompilerSource/main.cpp -o .objs/main.o
g++ -Wall  -O3 -O2 -Wall -DBUILD_DLL     -c /home/alex/enigma-dev/trunk/CompilerSource/parser/collect_variables.cpp -o .objs/parser/collect_variables.o
g++ -Wall  -O3 -O2 -Wall -DBUILD_DLL     -c /home/alex/enigma-dev/trunk/CompilerSource/parser/object_storage.cpp -o .objs/parser/object_storage.o
g++ -Wall  -O3 -O2 -Wall -DBUILD_DLL     -c /home/alex/enigma-dev/trunk/CompilerSource/parser/parser.cpp -o .objs/parser/parser.o
g++ -Wall  -O3 -O2 -Wall -DBUILD_DLL     -c /home/alex/enigma-dev/trunk/CompilerSource/parser/parser_components.cpp -o .objs/parser/parser_components.o
g++ -Wall  -O3 -O2 -Wall -DBUILD_DLL     -c /home/alex/enigma-dev/trunk/CompilerSource/syntax/checkfile.cpp -o .objs/syntax/checkfile.o
g++ -Wall  -O3 -O2 -Wall -DBUILD_DLL     -c /home/alex/enigma-dev/trunk/CompilerSource/syntax/syntax.cpp -o .objs/syntax/syntax.o
g++ -Wall  -O3 -O2 -Wall -DBUILD_DLL     -c /home/alex/enigma-dev/trunk/CompilerSource/varnames/varnames.cpp -o .objs/varnames/varnames.o
g++ -shared  .objs/cfile_parse/cfile_parse.o .objs/cfile_parse/cfile_parse_macros.o .objs/cfile_parse/cfile_pushing.o .objs/cfile_parse/cparse_components.o .objs/cfile_parse/cparse_shared.o .objs/cfile_parse/expression_evaluator.o .objs/cfile_parse/handle_letters.o .objs/cfile_parse/keyword_operator.o .objs/cfile_parse/macro_functions.o .objs/cfile_parse/main.o .objs/cfile_parse/skipping.o .objs/cfile_parse/template_handlers.o .objs/compiler/compile.o .objs/compiler/compile_includes.o .objs/compiler/output_locals.o .objs/compiler/pcs/pcs.o .objs/externs/externs.o .objs/externs/references.o .objs/gcc_interface/gcc_backend.o .objs/general/darray.o .objs/general/string.o .objs/general/textfile.o .objs/main.o .objs/parser/collect_variables.o .objs/parser/object_storage.o .objs/parser/parser.o .objs/parser/parser_components.o .objs/syntax/checkfile.o .objs/syntax/syntax.o .objs/varnames/varnames.o   -o ../compileEGMf.so -s 
/usr/bin/ld: .objs/cfile_parse/cfile_parse.o: relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
.objs/cfile_parse/cfile_parse.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 47 seconds)
0 errors, 0 warnings

-DBUILD-DLL only works for Windows.  It should be -fPIC for .so.
Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Pages: « 1 2 3 4 5 6 7 8 9 10 11 »
  Print