Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. Qt Creator integration with PhysX
Forum Updated to NodeBB v4.3 + New Features

Qt Creator integration with PhysX

Scheduled Pinned Locked Moved Unsolved Game Development
1 Posts 1 Posters 833 Views
  • 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.
  • J Offline
    J Offline
    juancaf9312
    wrote on 29 Aug 2016, 19:52 last edited by
    #1

    I am trying to use the physX library within Qtcreator. I Have alredy linked the library files and set the external include paths. Te code is pretty simple but when i try to build it, I have this error:

    main.obj:-1: error: LNK2019: símbolo externo "public: __cdecl physx::PxDefaultErrorCallback::PxDefaultErrorCallback(void)" (??0PxDefaultErrorCallback@physx@@QEAA@XZ) sin resolver al que se hace referencia en la función "void __cdecl `dynamic initializer for 'gErrorCallback''(void)" (??__EgErrorCallback@@YAXXZ)

    This is the code:
    #include <iostream>
    #include <ctype.h>
    #include "PxPhysicsAPI.h"

    using namespace std;
    using namespace physx;

    static PxDefaultErrorCallback gErrorCallback;
    static PxDefaultAllocator gAllocatorCallback;
    PxFoundation *mFoundation;

    int main()
    {

    mFoundation = PxCreateFoundation(PX_PHYSICS_VERSION, gAllocatorCallback,
        gErrorCallback);
    if(!mFoundation)
        printf("PxCreateFoundation failed!");
    cout << "Hello World!" << endl;
    return 0;
    

    }

    1 Reply Last reply
    0

    1/1

    29 Aug 2016, 19:52

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved