Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: ssepm on April 17, 2017, 05:33:23 pm
-
Hi every one! I´m a beginner user of Code::Blocks. I have very old C projects, now I want to upgrade my old codes, so by Codeblocks program l found there is an error of using "outportb" function...
Does anybody know how to implement "outportb" in Code::Blocks?
This is a section of my code:
void MOTOSEC1(void)
{
for(i=0;i<300;i++)
{
outportb(PS1,PASO1); /* MOTOR SEQUENCE 1 */
delay(DELAYSEC);
outportb(PS1,0x000);
delay(DELAYSEC);
outportb(PS1,PASO1);}
} /* END MOTOSEC1*/
error: undefined reference to "outportb"
Thanks
Ernesto
-
This is an Compiler and Operating System (OS) question; as in the answer depends on the Compiler and OS being used!
Please read the rules!! http://forums.codeblocks.org/index.php/topic,9996.0.html (http://forums.codeblocks.org/index.php/topic,9996.0.html)
Tim S.