CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Function used but not defined
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
temtronic



Joined: 01 Jul 2010
Posts: 9243
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Feb 09, 2022 2:47 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Feb 10, 2022 2:15 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Feb 10, 2022 4:40 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Feb 10, 2022 4:44 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Feb 10, 2022 4:58 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Feb 10, 2022 6:22 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Feb 10, 2022 6:24 am     Reply with quote

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.... Laughing

Let's go back to the good old dayze !! Teletypes, 7 bit ASCII, 20ma current loops, ASSEMBLER...
Ttelmah



Joined: 11 Mar 2010
Posts: 19539

View user's profile Send private message

PostPosted: Thu Feb 10, 2022 8:16 am     Reply with quote

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....
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group