View previous topic :: View next topic |
Author |
Message |
temtronic
Joined: 01 Jul 2010 Posts: 9243 Location: Greensville,Ontario
|
|
Posted: Wed Feb 09, 2022 2:47 pm |
|
|
hmmmm.....
Code: |
void set_tris_b(int8 value)
{
int x;
}
|
I bet 'set_tris_b()' is a reserved word and YOU can't make up a function with the same name ???
I don't know C but BASIC has 'reserved' words that you can't use.
The C experts here will know for sure. Now I'm curious is the manual has an appendix with a list of reserved words ? If not, it should !! |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19539
|
|
Posted: Thu Feb 10, 2022 2:15 am |
|
|
You do have a path even in Linux, and they do have a library for the
actual code here.
It is $PATH in Linux. |
|
|
TTM
Joined: 08 Feb 2022 Posts: 7 Location: France
|
|
Posted: Thu Feb 10, 2022 4:40 am |
|
|
temtronic wrote: |
I bet 'set_tris_b()' is a reserved word and YOU can't make up a function with the same name ???
|
Well, not a reserved keyword (as if, then, etc ..) but a "built in function".
If it compiles (and links properly), it clearly shows that the function is not present in the function library provided by CCS (well, this is what I think) |
|
|
TTM
Joined: 08 Feb 2022 Posts: 7 Location: France
|
|
Posted: Thu Feb 10, 2022 4:44 am |
|
|
Ttelmah wrote: | You do have a path even in Linux, and they do have a library for the
actual code here.
It is $PATH in Linux. |
Yeah of course :-)
What I meant is that the path doesn't need to be specifically setup in order to hold the compiler directory in that case, because I' running the program from the installation location
And this location contains both the executable (ccsc) AND the lib (pcm.so)
Last edited by TTM on Thu Feb 10, 2022 6:23 am; edited 1 time in total |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19539
|
|
Posted: Thu Feb 10, 2022 4:58 am |
|
|
Does the application itself have the permissions needed to write to the
compiler directory?.
It normally doesn't.
It has been ages since I played with the Linux version, but historically
you could _not_ run it inside it's own directory. You had to have your own
working directory, with write permissions, put the sources there, and then
call the compiler from here. |
|
|
TTM
Joined: 08 Feb 2022 Posts: 7 Location: France
|
|
Posted: Thu Feb 10, 2022 6:22 am |
|
|
Yes it does have the rights.
Again, compilation process works fine for any other source code files not having these specifics built in function |
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9243 Location: Greensville,Ontario
|
|
Posted: Thu Feb 10, 2022 6:24 am |
|
|
I hate these new computers and OSessss....
It's MY machine, I should have 100% TOTAL permission to do what I want ,'24/7' !
There's too many 'layers' and 'others' stopping me ..grrrr....
Let's go back to the good old dayze !! Teletypes, 7 bit ASCII, 20ma current loops, ASSEMBLER... |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19539
|
|
Posted: Thu Feb 10, 2022 8:16 am |
|
|
I'm the opposite. I started with IBM, working on their first Unix port. Their
own systems had good security and Unix was the same. It has always given
me the screaming abdabs' how users on PC's can interfere with parts
of the actual OS.... |
|
|
|