User forums > Using Code::Blocks

Using "outportb" to send out data to computer ports

(1/1)

ssepm:
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

stahta01:
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

Tim S.

Navigation

[0] Message Index

Go to full version