sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Programming in C, C++ for Mac and Windows?

    Scheduled Pinned Locked Moved Developers' Forum
    51 Posts 9 Posters 8.5k Views 9 Watching
    Loading More Posts
    • 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.
    • thomthomT Offline
      thomthom
      last edited by

      @unknownuser said:

      just double click on suext.ppj and it will open in PellesC IDE and then you can Project | Build and you will get a suext.so ready to use

      Tried that - but it complained about the project being in the wrong location. Thereafter I got the error I posted in previous post.


      location.png

      Thomas Thomassen β€” SketchUp Monkey & Coding addict
      List of my plugins and link to the CookieWare fund

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        When I google the error - all I find is people suggesting that one remove
        #if _MSC_VER != 1200 #error MSC version unmatch #endif
        from config.h.

        I take it that you found a way around that?

        Thomas Thomassen β€” SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • thomthomT Offline
          thomthom
          last edited by

          When I open the .ppj files in a text editor I see some minor differences.
          What kind of project template do you use?

          Thomas Thomassen β€” SketchUp Monkey & Coding addict
          List of my plugins and link to the CookieWare fund

          1 Reply Last reply Reply Quote 0
          • tbdT Offline
            tbd
            last edited by

            added suext6.ppj in SUExt dir on github. it should work now. I use PellesC 5 and something was changed in 6 that made that error.

            SketchUp Ruby Consultant | Podium 1.x developer
            http://plugins.ro

            1 Reply Last reply Reply Quote 0
            • thomthomT Offline
              thomthom
              last edited by

              Thanks to TBD I manage to make my first Hello World SketchUp Ruby Extension running! πŸ˜„
              The man deserves a big cookie!


              helloworld.png

              Thomas Thomassen β€” SketchUp Monkey & Coding addict
              List of my plugins and link to the CookieWare fund

              1 Reply Last reply Reply Quote 0
              • Chris FullmerC Offline
                Chris Fullmer
                last edited by

                Hey Congrats Thom! So when are you moving out of Architecture and into Programmer/Developper full time? πŸ˜„

                Chris

                Lately you've been tan, suspicious for the winter.
                All my Plugins I've written

                1 Reply Last reply Reply Quote 0
                • thomthomT Offline
                  thomthom
                  last edited by

                  when it pays more..? πŸ˜„

                  Thomas Thomassen β€” SketchUp Monkey & Coding addict
                  List of my plugins and link to the CookieWare fund

                  1 Reply Last reply Reply Quote 0
                  • thomthomT Offline
                    thomthom
                    last edited by

                    Say that I have a module Foo defined in my ruby script containing a method bar.

                    How can I reference Foo in C so I can for instance call bar?
                    symbol = rb_intern("bar"); rb_funcall(??? , symbol, 0);

                    Would I use VALUE rb_define_module(const char *name) ?

                    module = rb_define_module("Foo"); symbol = rb_intern("bar"); rb_funcall(module , symbol, 0);
                    ❓

                    Thomas Thomassen β€” SketchUp Monkey & Coding addict
                    List of my plugins and link to the CookieWare fund

                    1 Reply Last reply Reply Quote 0
                    • tbdT Offline
                      tbd
                      last edited by

                      thomthom: yes πŸ˜‰

                      when in doubt always try it. faster than posting a question on forum πŸ’š

                      SketchUp Ruby Consultant | Podium 1.x developer
                      http://plugins.ro

                      1 Reply Last reply Reply Quote 0
                      • thomthomT Offline
                        thomthom
                        last edited by

                        Just wanted to make sure - some times something appear to work - but later turns out to be very wrong.

                        Thomas Thomassen β€” SketchUp Monkey & Coding addict
                        List of my plugins and link to the CookieWare fund

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 3
                        • 3 / 3
                        • First post
                          Last post
                        Buy SketchPlus
                        Buy SUbD
                        Buy WrapR
                        Buy eBook
                        Buy Modelur
                        Buy Vertex Tools
                        Buy SketchCuisine
                        Buy FormFonts

                        Advertisement