Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3368: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3370: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3371: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3372: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
OrbWorks Community Forum • View topic - Desktop Compilation problems
Page 1 of 1

PostPosted: Wed Sep 03, 2003 5:52 am
by travgypsy
I have an app that I creatd and successfully compiled on a palm device. I Used Ccontrols.

Now when I am trying to port the memo pad files to the desktop so I can implement some PToolBoxLib functions I cannot complie, even before adding the PToolBoxLibs. It seems to have problems finding XXXControls.c.Lib and XXXMethods.c.lib. I can understand this because I cannot find them either. There has to be a document on porting this to the desktop. I must have to rename some files so that the software is happy, but I don't know what else to try. I have searched and searched before I posted this, I must have missed it. Can someone point me in the right direction.

Thanks

Roy

PostPosted: Wed Sep 03, 2003 11:27 am
by jstadolnik
Put the PToolboxLib.lib file in the same directory as the pocketc compiler (pde.exe).

This is described in the "Installation" section of the PToolbox documentation.

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm

PostPosted: Wed Sep 03, 2003 9:26 pm
by travgypsy
Thank you for the reply, but the problem is not with the PToolBoxLib (I haven't gotten to that one yet). The problem is with the 3 memos compiled by Ccontrol, and the reference to 'include"Ccontrols"'

I have merged the three memos into one, but still can't compile the Ccontrol stuff past the include.

Thanks for your time.

PostPosted: Wed Sep 03, 2003 11:07 pm
by jstadolnik
There are no Ccontrols .lib files. You need to have the Ccontrols .h files in the same directory as your program's source code.


Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm

PostPosted: Thu Sep 04, 2003 12:39 am
by travgypsy
<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by jstadolnik</i>
<br />There are no Ccontrols .lib files. You need to have the Ccontrols .h files in the same directory as your program's source code.
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">

I want to thank you again for you time and patience, I really appreciate it.

This is exactly where my problems lies. I have tried something different. I have rebuilt the app in PocketC Visual Forms (this eliminates Ceditor), basically I built the whole thing on the desktop instead of building on the palm and transferring to the desktop.

Bear with me as i give you some details in an effort to answer some possible questions.

pde.exe is located in this directory
D:\Program Files\PocketC

as well as all of my source code (all 4 files)
PcktTest.h
PcktTestForms.pc
PcktTestEvents.pc
PcktTest.pc (the project file that the following code resides in)
and
PToolboxLib.lib
PktCSysLib.lib
PktCDateLib.lib
Fctl.h
Ccontrols.c
Ccontrols.h

and many, many more

Here is code the compiler is choking on

library "PToolboxLib"
#include "Fctl.h"
#include "PcktTest.h"
#include "PcktTestForms.pc"
#include "PcktTestEvents.pc"

Not the first line, but every line thereafter (starting with Fctl.h) if I comment out the previous line.

The error message I get is:
--
Compiler error
Unable to open file 'D:\Program Files\PocketC\Fctl.h.lib'
D:\Program Files\PocketC\PcktTest.pc @ Line 16
--
Line 16 is: #include "Fctl.h"
and if i comment that line out I get the same error on the following lines of code.

the .h.lib part I just don't understand. This is the same error (with proper filename) for everything I try to 'include' or '#include'

I have searched the docs, the web, this forum. I have to be missing some simple setup thing, but I can't find it. Once again I appreciate everything.

Thanks

Roy

PostPosted: Thu Sep 04, 2003 12:52 am
by jstadolnik
Does the first line your program specify the program's name? For example:

//PcktTest.pc
library "PToolboxLib"
#include "Fctl.h"
#include "PcktTest.h"
#include "PcktTestForms.pc"
#include "PcktTestEvents.pc"

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm

PostPosted: Thu Sep 04, 2003 1:54 am
by travgypsy
Yes, the 'include's, 'file names.pc', and '//names' all match.

Same error

--
Compiler error
Unable to open file 'D:\Program Files\PocketC\Fctl.h.lib'
D:\Program Files\PocketC\PcktTest.pc @ Line 16
--

Thanks

Roy

PostPosted: Thu Sep 04, 2003 2:32 am
by jstadolnik
If your main application source file is names.pc then the first line of this file should be:

//names.pc

Don't forget the .pc part.

See the PocketC and PToolboxLib examples included in thier respective .zip files. These should compile out of the box.

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm

PostPosted: Thu Sep 04, 2003 2:58 am
by travgypsy
Thanks again for your assistance Mr. Stadolnik. I couldn't get anything with an include to compile. I just threw everything into one .pc so I could eliminate the 'includes'. It compiled, and I am debugging.

Thanks

Roy

PostPosted: Thu Sep 04, 2003 10:01 am
by dcalp
Hi Roy:
Sorry, I missed this discussion yesterday.
Perhaps I could give you some help if you are trying Pocket VisualForms.
This information come from the help file of PVF, section Code Generation:

<hr noshade size="1">
<b>Tips for a successful compilation</b>
Until you find a bug ;-) the most common compile errors are caused by wrong location or installation of the libraries files. Here are the options:

1. PDE and CControls: the source generated by PVF and the entire CControls source (9 files Ccontrols*.c and Ccontrols.h in version
1.1 and better) must be in the same folder. You can use 1.0 but this version doesn't support Edit Line control.

2. PDE and PToolboxLib: PToolboxLib.lib must be at PDE's folder. The file Fctl.h must be in the source code folder.

3. Palm memos and CControls: you need to create 9 memos with the source of the Small folder of the library and one memo with Ccontrols.h. The file Ccontrols2-b.c have a bug, the first line is "/$ Ccontrols2.c", change it to "/$ Ccontrols2-b.c".

4. Palm memos and PToolboxLib: HotSync PToolboxLib741.prc (version 7.4.1 or better) and create a memo with Fctl.h.

Other issue: because of the global declarations of controls handles and constants IDs, if you use the same name (in Pocket VisualForms) for two controls or forms you can get the "Name xxx already defined" compiler error from PocketC or PDE when you work with CControls. In PToolbox you get a "#define requires an ident" error.
<hr noshade size="1">

Let me know if you heve questions

Regards



Diego

Pocket VisualForms
Visual design for PocketC
http://pocketvf.port5.com
http://www.angelfire.com/rnb/pocketvf