22 Ocak 2019 Salı

Error LNK2026 module unsafe for SAFESEH image. ve LNK1104: cannot open file libc.lib çözümleri


Error LNK2026 module unsafe for SAFESEH image.

Right-click on your project ->
Properties -> 
Configuration Properties ->
Linker ->
Advanced and changed "Image Has Safe Exception Handlers" to "No (/SAFESEH:NO)"

LNK1104: cannot open file libc.lib 

Project Property -> Configuation Properties -> Linker -> Input -> Ignore Specific Library
Ignore the LIBC.LIB
Share:

21 Ocak 2019 Pazartesi

20 Ocak 2019 Pazar

15 Ocak 2019 Salı

access gpio and sys class in c++

#include < iostream >
#include < stdio.h >
#include
using namespace std;
#define MAX 64
int flashGPIOLED(int,int);
int readButton(int);
int main()
{
  //readButton(7);
 flashGPIOLED(7,5); 
}

int flashGPIOLED(int GPIOPin,int times)
{
 cout < < "GPIO LED Flash Pin: "< 
Share:

14 Ocak 2019 Pazartesi

Emit Signal from static function

class MainWindow : public QMainWindow
{
    ...
    private:
        static MainWindow* m_psMainWindow;

        void emit_signal_TrameRecu(StructureSupervision::T_StructureSupervision* ptr)
        {
            emit signal_TrameRecup(ptr);
        }
};

// Implementation

// init static ptr
MainWindow* MainWindow::m_psMainWindow = nullptr; // C++ 11 nullptr

MainWindow::MainWindow(QWidget* parent)
    : QMainWindow(parent)
{
    m_psMainWindow = this;
}


void MainWindow::lancerServeur(std::atomic& boolServer)
{
    StructureSupervision::T_StructureSupervision* bufferStructureRecu;

    ...

    if(m_psMainWindow)
        m_psMainWindow->emit_signal_TrameRecu( bufferStructureRecu );
}
Share: