Implicit declaration of function found in header?

Your define is SetSP while you use it as SetSp note the case difference in letter p . Welcome to case sensitive language...

Up vote 1 down vote favorite share g+ share fb share tw.

I have the following in my file. H: #define SetSP(sp) asm("movq %0,%%rsp": : "r" (sp) ) However, in my file. C file, when I try using it for example: SetSp(lwp_ptablelwp_procs.

Sp); I get an implicit declaration of function SetSp, when I compile file.c. I have #include "file. H" in file.c.

Thoughts? C header-files link|improve this question asked Jan 30 at 6:14Lucas1447 54% accept rate.

– swegi Jan 30 at 6:16 Yes, I do include file. H – Lucas Jan 30 at 6:17 1 Did you put an extra space just after the #define SetSP and before (sp)? Did you include your file.

H in file. C? Use gcc -C -E file.

C > file. I then look inside file. I to understand what the preprocessor is doing... – Basile Starynkevitch Jan 30 at 6:17.

Your define is SetSP, while you use it as SetSp, note the case difference in letter p. Welcome to case sensitive language...

If you've copied and pasted your code, note that SetSP is not the same as SetSp (you've used a lower case p when you invoked the macro).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions