Impossible to find entry point



  • hy,
    I'm trying to run my program from outside Qt, I went into the program folder, and i run on the executable program, obviously I added all the requested libraries (QtCore4,Qtsql4,qtnetwork4,qtgui4,mingwm10,libgcc_s_dw2-1) but when I click on the exe again I get this error:
    can't find entry point _ZN7QWidget8winEventEP6tagMMSGPI of the procedure in the DLL and then the path to my executable.
    sorry I'm italian and I translated the error message!!
    I noticed that if I had all the libraries and then run it inside Qt I get the error:The program has unexpectedly finished.
    thanks


  • Moderators

    [quote author="sax94" date="1364835935"]hy,
    I'm trying to run my program from outside Qt, I went into the program folder, and i run on the executable program, obviously I added all the requested libraries (QtCore4,Qtsql4,qtnetwork4,qtgui4,mingwm10,libgcc_s_dw2-1) but when I click on the exe again I get this error:
    can't find entry point _ZN7QWidget8winEventEP6tagMMSGPI of the procedure in the DLL and then the path to my executable.
    [/quote]
    Are you sure to have copied the dlls of the correct version?

    [quote author="sax94" date="1364835935"]I noticed that if I had all the libraries and then run it inside Qt I get the error:The program has unexpectedly finished.
    thanks[/quote]
    As long as you have not messed around with the libraries, this should be not related to the problem above. There is a problem with your code's logic.



  • Hy sorry if i answer only Now, i tried using Qt 4.8.1 and everything works fine, bit then i tried with Qt 5.0.2 and i get the same error. I don't think it's a problem of My business logic because i tried with anche empty project and i get the same error!!



  • You said you added QtCore4, Qtsql4 etc. binaries, but next you say it doesn't work with Qt 5.0.2. Have I understood correctly? Are you trying to use Qt4 binaries with Qt5 executable?



  • sorry, mi fault, I tried with qt 4.8.1 adding qtcore4 ecc... and everything worked fine, then I tried with qt5 adding all the libraries that qt5 needs,( they are a lot more thant what qt4 requested)
    but it didn't work!!
    hope I explained my self!!



  • OK. Download 'Dependency Walker' and run it with your executable. It should show you what is missing and/or which binaries don't provide expected dependencies. One thing: it can help you only if you don't load binaries at runtime (using for example QLibrary).



  • I don't know if this is the case but I use QODBC!! I used dependency walker and only IESHIMS.DLL file was missing, i didn't find it on hte computer so I installed it using a program called "dll fixer". the I runned again dependency walker, ieshims.dll was there, know i get a run time error when i start the program!!!!



  • I just re-checked with dependency and I noted that on the module qt5core.dll the field link checksum is colored in red don't know what this could mean or if can help solve the problem!!



  • solved adding libegl.dll!!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.