Page 1 of 1

Libraries - order of sources

PostPosted: Thu Dec 21, 2000 6:34 am
by luben
Hello,

From your explanation about the libraries I understood that the full version users should add all source files to their project and compile it, right? But I didn't find any word about the order of this souces into the project. Maybe like demo version user I don't see some additional manual or something like that. But you have to agree that is doubtfull that your project will be compiled correctly if you just put all files, without keeping in mind some rules (wich source is before or after others), at least the alphabet order don't make any sense. Don't tell me that all your source files could be placed on any place like #include and everything will be OK. Maybe this a failure or lapse in the manual.

Regards
Luben


Re: Libraries - order of sources

PostPosted: Thu Dec 21, 2000 8:32 am
by luben
Hello,

Yes, that's true - if you use library at the end than you can put include files in any order. But in one of my previous question you answered that you don't recommend the user to build their own library and in fact there is no information in the manual how to this. So, where I miss something - from one side you say that they have to use libraries at the end of the node list (menshened in last reply), from other - no libraies are nessesary if the user has source files....?

Because I can't see what full version has, I feel that something miss to understand the problem with libraries and building the project. At least if I have only the manual I couldn't be able to do this.
Excuse me for my questions, but if I buy one day the product I would ask the same questions (well, if you supply with the full version other extended manual - I'll forget my questions).

Regards
Luben


Re: Libraries - order of sources

PostPosted: Thu Dec 21, 2000 8:55 am
by Salvo Tech Support
Hi Luben.

1) When linking a project, the files should be in this order: *.obj files first, in any order, then *.lib files. In terms of MPLAB, this means that you should put the Salvo library (e.g. a freeware library) at the end of the project's Node list.

2) If you use libraries (e.g. a freeware library, or a Salvo library you've created on your own with the full version's source code), then it needs to be at the end of the list of linked files. But you don't need to use any libraries if you have the source code, because all of the Salvo code is contained in the source (*.c, *.h) files.

Perhaps what's confusing you is that you are expecting libraries to be part of the normal, full distribution of Salvo. After all, there are several libraries that are part of HI-TECH PIC C and other C compilers.

But because of the high degree of configurability of the Salvo source code (full of #if ... #endif statements), we supply only the freeware libraries, and no "full version" libraries.

Please note the terminology used in the User Manual -- we supply the freewarelibraries, and you (the full-version user) can optionally supply the custom libraries.

3) There is only one Salvo User Manual, covering both the freeware and full versions. We'll try to clarify this issue of libraries in the next release.

4) Summary -- if you use the freeware version of Salvo, you must link in the freeware libraries. If you have the full version, just add the source files you need to your project, and make the project.

We have tried to supply examples (e.g. in AN-1) that are as comprehensive as possible in helping novice users get started with Salvo. AN-1 outlines in detail the procedure for linking in a freeware library in MPLAB and HPDPIC projects.

[This message has been edited by Salvo Tech Support (edited December 21, 2000).]


Re: Libraries - order of sources

PostPosted: Thu Dec 21, 2000 9:21 am
by luben
Hello,

As I understand correctly you can add (like #include in any order) all files from the source directory into your project and this will be OK to build the project.

The example in AN1 is not very applicable - in the project you use libraries. Maybe for full version you supply a project that don't use any libraries, if I understand correctly.

Trust me, for beginners like me such moments are very foggy, but for people that made Salvo it's no visible problem at all. My advice is to include in the next release examples that don't need libraries, real examples with all features of Salvo included. Because from your current examples you will fall into loop - the examples are shown with "add library" and nowhere is no word how to do libraries - smart. I mean, the only one think is to build the supplied project and only to wander how it was made. It's just like to distribute receipt of how to make CocaCola - take water, take concentrate, stir them well and chill. The ingradients of concentrate are available everywhere..... And of course for people like you, that know the proprtions of the concentrate no visible problem exists :-)


Regards
Luben


Re: Libraries - order of sources

PostPosted: Thu Dec 21, 2000 9:32 am
by Salvo Tech Support
Hi Luben.

The v2.2 full version contains all the demo and (>40) test programs, each of which has a full MPLAB project (and usually an HPDPIC project, too), and all of them are compiled with source code only. I think you'll find them helpful ...

These projects are not very applicable to freeware users, since they have only the freeware libraries (and chk.c and mem.c) to play with.

Regards,


Re: Libraries - order of sources

PostPosted: Thu Dec 21, 2000 11:11 am
by Salvo Tech Support
Hi Luben.

The order of the source files (*.c) makes no difference -- we jumble them up all the time.

The only requirement is that you place libraries (*.lib) at the end of the project nodes in an MPLAB project.


Re: Libraries - order of sources

PostPosted: Thu Dec 21, 2000 11:12 am
by aek
Actually, we often do list them alphabetically :-)