Page 4 of 5
Posted: Tue Jun 08, 2004 9:45 pm
by Karbon
Paul's installed worked perfectly for me. I do have some strange stuff in that compilers dir though!
http://www.k-billing.com/screen1.jpg
Posted: Tue Jun 08, 2004 10:24 pm
by RJP Computing
@Paul,
Thanks. I am tring it now.
After receiving the install from Paul, I can now debug, but I get the LINKER ERROR : < No Message > error.
Still getting closer. I will look into this further.
Posted: Tue Jun 08, 2004 10:32 pm
by GPI
Karbon wrote:Paul's installed worked perfectly for me.
Oh, good. Do you save you old "destroyed" PB-jaPBe-PureVision-Install-Combo? When yes: Please compare. What is diffrent?
I do have some strange stuff in that compilers dir though!
No.
Posted: Tue Jun 08, 2004 10:38 pm
by Paul
@ RJP Computing
Compile the same code in the PB-IDE. If your code contains API calls that are macros, like ImageList_AddIcon_()
PB-IDE will give you a linker error complaining about the macro while jaPBe will give you LINKER ERROR : < No Message > error.
Maybe GPI must adjust jaPBe to deal with PB's new linker and linker messages to avoid more confusion

Posted: Wed Jun 09, 2004 1:58 am
by nhokem
GPI wrote:Thats good news: A good error-message. Can you please report the files in the purebasic\pbcompilers\ - directory?
yep, will do...though it'll have to wait until tomorrow when I get back to work. i still get the "no message" linker error on my pc at home (haven't done the full uninstall/re-install here yet).
Cid
Posted: Wed Jun 09, 2004 1:15 pm
by nhokem
GPI wrote:Thats good news: A good error-message. Can you please report the files in the purebasic\pbcompilers\ - directory?
okay, here's a pic of the dir after I get that POLINK error:
hope this helps...Cid
Posted: Wed Jun 09, 2004 6:59 pm
by GPI
Hm, not really. You can delete the Linker.out, because it is not needed anymore.
Try follow. hold shift and click on "restart compiler" (don't release), the Compiler-Window should appear. Then load your source. Now again hold shift and start compile. My fake-linker should open and show additional messages. Maybe there is something intressting...
Posted: Thu Jun 10, 2004 1:10 pm
by nhokem
okay, here's what's in the fake linker window:
Code: Select all
/OUT:"C:\My | Documents\_pbfiles\test.exe" | /ENTRY:start | Start.o | /SUBSYSTEM:Windows | /LIBPATH:"..\PureLibraries\Windows\Libraries" | PureBasic.obj | SystemBase.lib | CRTDLL.lib | KERNEL32.lib | USER32.lib | GDI32.lib | COMDLG32.lib | ADVAPI32.lib | COMCTL32.lib | 1.lib | 2.lib | 3.obj | 4.lib | 5.obj | 6.lib | 7.lib | 8.lib | 9.lib | 10.lib | 11.lib | 12.lib | 13.lib | 14.lib | 15.lib | 16.lib | ODBC32.LIB | USER32.LIB | KERNEL32.LIB | |
Before Link
len:390
/OUT:"C:\My Documents\_pbfiles\test.exe" /ENTRY:start Start.o /SUBSYSTEM:Window
s /LIBPATH:"..\PureLibraries\Windows\Libraries" PureBasic.obj SystemBase.lib CR
TDLL.lib KERNEL32.lib USER32.lib GDI32.lib COMDLG32.lib ADVAPI32.lib COMCTL32.l
ib 1.lib 2.lib 3.obj 4.lib 5.obj 6.lib 7.lib 8.lib 9.lib 10.lib 11.lib 12.lib 1
3.lib 14.lib 15.lib 16.lib ODBC32.LIB USER32.LIB KERNEL32.LIB _jaPBe_0.res
exitcode:1
here's what the compiler screen looks like:
and finally, an actual pic of the error too:

Posted: Thu Jun 10, 2004 5:48 pm
by GPI
First @fred:
Code: Select all
/OUT:"C:\My | Documents\_pbfiles\test.exe"
The first lines shows all the "programParamter()", seperated by a "|". It seems, that the out-parameter is here splited between "c:\MY" and "Documents". Mybe a bug of programparamter() or a bug in the pbcompiler.
@nhokem:
It seems, that no _japbe_0.rc is created (does xp-Style enable work?)
open the _jaPBe_0.rc (in the pbcompilers-directory) with jaPBe and try to compile this one.
Posted: Thu Jun 10, 2004 6:34 pm
by nhokem
GPI wrote:@nhokem:
It seems, that no _japbe_0.rc is created (does xp-Style enable work?)
enabling xp-skin causes the same error (with and without an icon selected).
GPI wrote:open the _jaPBe_0.rc (in the pbcompilers-directory) with jaPBe and try to compile this one.
when i compile the _jaPBe_0.rc, i get no errors but the _jaPBe_0.res file is not in the pbcompilers directory (should it be there?)
Posted: Thu Jun 10, 2004 9:30 pm
by GPI
nhokem wrote:when i compile the _jaPBe_0.rc, i get no errors but the _jaPBe_0.res file is not in the pbcompilers directory (should it be there?)
Ok, open the Dos-Box and go to the Purebasic-compiler-directory
type then
"porc _japbe_0.rc"
What happend then?
(Btw: can you post the _japbe_0.rc?)
Posted: Fri Jun 11, 2004 1:30 pm
by nhokem
GPI wrote:type then
"porc _japbe_0.rc"
What happend then?
that worked! it created the necessary _japbe_0.res file (although i did get a "warning: No newline at end of file."). when i tried compiling my app with japbe, there was no errors and my app had the icon!!!
However, i need to manually compile _japbe_0.rc with porc everytime i use an icon or i'll get the same icon everytime (since _japbe_0.rc doesn't seem to compile from japbe, the _japbe_0.res doesn't change until i manually run porc). btw, the _japbe_0.res file doesn't seem to get deleted anymore either (assuming it did before)...
GPI wrote:(Btw: can you post the _japbe_0.rc?)
here's the contents of my current _japbe_0.rc:
Code: Select all
LANGUAGE 0x0, 0x0
1 Icon "C:\\My Documents\\_pbfiles\\dc\\waiting.ico"
for now, to get around this, i've added a tool for Porc to compile _jaPBe_0.rc (once i've corrected the icon path).
thanks for walking me through all this, GPI...hopefully it narrows things down for you...
Posted: Fri Jun 11, 2004 7:01 pm
by GPI
ok, good (or bad). I don't know, why jaPBe don't start porc correct...
@All with jaPBe-Compile-Problems.
Are any Spaces in the path of Purebasic or in the path of jaPBe?
When yes: Can you copy all the files of Purebasic and of jaPBe in a path without Spaces? Don't forget to set the new compiler-path in the japbe-preferences. Did this solve the problem?
Edit:
@
>although i did get a "warning: No newline at end of file."
Ignore this.
>1 Icon "C:\\My Documents\\_pbfiles\\dc\\waiting.ico"
You must not correct the path (the \\ in \). Why? This is a c-String. A \n will be replaced to chr(13)+chr(10). When you write
>1 Icon "C:\NewIcon.ico"
porc will not find the icon.
Posted: Fri Jun 11, 2004 7:05 pm
by Karbon
That may very well be why Paul's install works - there are no spaces in his paths.
Virtually every PB install is going to go into c:\Program Files\PureBasic though - so I'm surprised that more people aren't having trouble if that is the cause.. It might be that not many are using 3.91, though..
Posted: Fri Jun 11, 2004 7:40 pm
by nhokem
GPI wrote:You must not correct the path (the \\ in \). Why? This is a c-String. A \n will be replaced to chr(13)+chr(10). When you write
>1 Icon "C:\NewIcon.ico"
porc will not find the icon.
heh, i meant changing the path/filename TO the new icon...
i used to program in c/c++ back in the ol' DOS days...nothing major, mind you...in fact, I still have most of my half-written old code lying about (incl. a rogue-like rpg that never got beyond the map generator)...i do miss being forced to define variables, and those lovely CLASS structures...
unfortunately (or maybe fortunately since i've found better programming environments) i could never get the hang of VC++...nor do i like programming in VB. i prefer coding in a nice, clean, simple-looking editor...with all the bells and whistles optional (which is why i LOVE jaPBe; the fact that you can easily add-on any tools YOU want is very nice...not to mention FOLDING!!!). I never liked working with VB's form designer and found getting from that to the actual code annoying...
(how's that for going OT...)