Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    James Choate
    @JChoate0001
    8.8. Giving Each Instance of a Class a Unique Identifier -- https://www.oreilly.com/library/view/c-cookbook/0596007612/ch08s09.html
    Q: The non-menu object items, are they objects or at least wrapped in object?
    James Choate
    @JChoate0001
    If this isn't a completely object oriented environment then we may need a pseudo-menu object that behaves like a menu object
    And it wraps the non-object "thingy"
    Grant Rostig
    @grantrostig
    CppMSG meetup starts in 1.5 hours.
    Victor Eijkhout
    @VictorEijkhout
    No meeting today?
    3 replies
    Grant Rostig
    @grantrostig
    Fewer meetings and on different days are being tried. Since many semi-regular attendees are not RSVPing for meetings, they are more likely to cancelled. RSVP yes is polite and can always be changed. Meetup.com can feed your google calendar, my google calendar tell me about my meetups.
    2 replies
    meetup.com has the correct event information....at all times. :)
    James Choate
    @JChoate0001
    FYI -- We’ve Got a Science Opportunity Overload: It’s Time to Launch the Wolfram Institute! -- https://writings.stephenwolfram.com/2022/04/weve-got-a-science-opportunity-overload-its-time-to-launch-the-wolfram-institute/
    James Choate
    @JChoate0001
    FYI - Notepad Next -- https://github.com/dail8859/NotepadNext (C++ & QT)
    James Choate
    @JChoate0001
    FYI - Your First Business Should Be A Spreadsheet -- https://endler.dev/2021/first-business/
    James Choate
    @JChoate0001
    James Choate
    @JChoate0001
    NerOne - Low level C++ neural network engine -- https://github.com/Immortale-dev/NerOne
    Grant Rostig
    @grantrostig
    Tomorrow: In-Person Austin, TX meetup: Embedded C++14 in a “SuperLoop” Firmware - 5 days from now on 4/27/2022 https://www.meetup.com/Cpp-Austin/events/283374799/
    1 reply
    Grant Rostig
    @grantrostig
    meetup.com/cppmsg starts now
    James Choate
    @JChoate0001
    FYI - Trippin on Tubs -- https://github.com/ebarlas/TrippinOnTubs
    Grant Rostig
    @grantrostig
    meetup.com/cppmsg starts in 2 hours online.
    Nick Boz
    @nickboz_gitlab
    Hello, guys.
    Grant Rostig
    @grantrostig
    NOTE: a new room for Embedded C++, featuring our local Austin presentation by Amazon Prime Air Gitter
    lomas
    @lomassubedi
    What would be the best way porting a C project to C++ ?
    29 replies
    James Choate
    @JChoate0001
    68747470733a2f2f6867312e66756e6e796a756e6b2e636f6d2f70696374757265732f4c6561726e2b632b696e2b32312b646179735f3765653333395f333138313630312e6a7067.jpg
    lomas
    @lomassubedi

    Hi,
    I want to write a C Wrapper for C++.
    the serial library is in C++ and I would like use some methods from the C++ serial library.

    I have created a C++ wrapper header and a .cpp source as wrapper.h and wrapper.cpp. Which goes as :

    // wrapper.h
    #ifdef __cplusplus
    extern "C" {
    #endif
    
    #include <stdint.h>
    
    typedef struct pserial pserial_t;
    
    pserial_t * new_serial(char * port, uint32_t baud);
    void delete_serial(pserial_t* d);
    
    #ifdef __cplusplus
    }
    #endif

    and wrapper.cpp as :

    #include "wrapper.h"
    #include "serial/serial.h"
    
    extern "C" {
    
        pserial_t * new_serial(char * port, uint32_t baud) {
            std::string _port = std::string(port);
            return new serial::Serial(_port, baud);
        }
    
        void delete_serial(pserial_t* serl) {
            delete static_cast<serial::Serial*>(serl);
        }    
    }

    but I am getting errors like :
    error: cannot convert ‘serial::Serial*’ to ‘pserial_t*’ {aka ‘pserial*’} in return
    and
    error: invalid static_cast from type ‘pserial_t*’ {aka ‘pserial*’} to type ‘serial::Serial*’
    I am not getting the clue to resolve it, humbly request for some suggestions :)

    4 replies
    Daniel Macovei
    @macovedj
    Attending the Austin meetup for the first time this evening. Is there anything that I could review in advance to make sure I'm up to speed?
    1 reply
    James Choate
    @JChoate0001
    Jon Kalb
    @JonKalb
    What is the zoom link?
    James Choate
    @JChoate0001
    James Choate
    @JChoate0001
    James Choate
    @JChoate0001
    Grant Rostig
    @grantrostig
    online meetup starting now at meetup.com/cppmsg
    James Choate
    @JChoate0001
    FYI -- Better Computer Grants -- https://makeabetter.computer/
    FYI -- Xournal++ -- https://xournalpp.github.io/
    James Choate
    @JChoate0001
    3 replies
    FYI -- Open Source Agenda - Open source project search engine -- https://www.opensourceagenda.com/
    FYI - Elicit - AI Research Assistant -- https://elicit.org/search (It uses AI to find papers and other research resources based on your search parameters)
    Francisco J Mota
    @Frank3354
    This message was deleted
    James Choate
    @JChoate0001
    FYI - Modern TUI Calendar and Task Manager -- https://github.com/anufrievroman/calcure
    FYI -- Teleforking a process onto a different computer! -- https://thume.ca/2020/04/18/telefork-forking-a-process-onto-a-different-computer/
    James Choate
    @JChoate0001
    FYI - Grml Live Linux -- https://grml.org/
    James Choate
    @JChoate0001
    FYI - Why We Will Never Have Enough Software Developers -- https://whoisnnamdi.com/never-enough-developers/
    Grant Rostig
    @grantrostig
    online meetup starting now at meetup.com/cppmsg
    Ali Marouf
    @AliMarouf97

    @AliMarouf97
    Hi developers,
    Please review my C++ Genetic Algorithm Library
    https://github.com/AliMarouf97/GeneticAlgorithm

    The library provides a general genetic algorithm. It is simple, easy to use, and very fast. All you need to do is to define the fitness function and its variables. There are many examples of how to deal with classic genetic algorithms problems.

    Jon Kalb
    @JonKalb
    Are you still meeting? If so, what is the URL?
    1 reply
    Ginger Old
    @laoshaw
    embedded normally disables exceptions, but containers use exceptions, does that mean embedded c++ avoids containers totally?
    AlanU
    @AlanU
    interesting talk out of cpp north https://youtu.be/omrY53kbVoA
    AlanU
    @AlanU
    Good video with examples of overloading the new operator https://youtu.be/p-sprvJX07E