Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

Question on modifying the JAM Staple byte code player

I am trying to call peek/poke type of function written in C++ from Altera provided JAM Staple Byte Code player C code. In doing so I need to start including stdafx.h and other header files in the C code. But Visual studio errors out in doing so. I need to call these customized get/put functions written in C++ from C code. I am not sure what is the best way to handle this.

Your suggestions will be very helpful to me.

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Not much info to go on, but if you don't already know, try looking up info on:

    extern "C" {
      // code and/or header info here
    }