Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Calling python function from c++

Calling python function from c++

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestionc++python
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Shohel hasan
    wrote on last edited by
    #1

    i want to call python function from c++. i copy the c++ and python code from this site. but when i try to compile c++ code then it show an error. the error is: fetal error: python.h: no such file or directory how can i solved this problem ?

    V L CPalliniC 3 Replies Last reply
    0
    • S Shohel hasan

      i want to call python function from c++. i copy the c++ and python code from this site. but when i try to compile c++ code then it show an error. the error is: fetal error: python.h: no such file or directory how can i solved this problem ?

      V Offline
      V Offline
      Victor Nijegorodov
      wrote on last edited by
      #2

      Shohel hasan wrote:

      error: python.h: no such file or directory how can i solved this problem ?

      Be sure that "python.h" file exists!

      1 Reply Last reply
      0
      • S Shohel hasan

        i want to call python function from c++. i copy the c++ and python code from this site. but when i try to compile c++ code then it show an error. the error is: fetal error: python.h: no such file or directory how can i solved this problem ?

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Go back to the article where you copied the code from and check that the file python.h was also copied. If it is not there then post a question in the forum at the end of the article. The author should then be able to help you.

        1 Reply Last reply
        0
        • S Shohel hasan

          i want to call python function from c++. i copy the c++ and python code from this site. but when i try to compile c++ code then it show an error. the error is: fetal error: python.h: no such file or directory how can i solved this problem ?

          CPalliniC Offline
          CPalliniC Offline
          CPallini
          wrote on last edited by
          #4

          Assuming you are using Visual Studio on Windows, have a look at Python support in Visual Studio on Windows | Microsoft Docs[^].

          In testa che avete, signor di Ceprano?

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups