Hello,
I've been studying a lot C++ and 64-bit Assembly during my apprenticeship and would like to get into GUI programming with Qt.
Sadly I can't figure out how to get my project properly set up to call an extern assembly function from my .s or .asm file.

This is what I have tried:
.pro
Qt Code:
  1. QT += core gui
  2.  
  3. greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  4.  
  5. TARGET = test---
  6. TEMPLATE = app
  7.  
  8. DEFINES += QT_DEPRECATED_WARNINGS
  9.  
  10.  
  11. QMAKE_EXTRA_COMPILERS += nasm
  12. # or should I use QMAKE += nasm
  13.  
  14. SOURCES += main.cpp\
  15. mainwindow.cpp\
  16. asm.s
  17.  
  18. HEADERS += mainwindow.h
  19.  
  20. FORMS += mainwindow.ui
  21.  
  22. LIBS += asm.s
To copy to clipboard, switch view to plain text mode 

mainwindow.cpp
Qt Code:
  1. //code
  2.  
  3. extern "C" __int64 assembly();
  4.  
  5. //code
  6.  
  7. void MainWindow::on_pushButton_clicked()
  8. {
  9. int zahl = assembly(); // for testing purposes I just want the value of rax to be returned and put into the variable zahl
  10. }
To copy to clipboard, switch view to plain text mode 

asm.s
Qt Code:
  1. .code
  2. .global
  3. assembly proc
  4.  
  5. mov rax, 1
  6. ret
  7.  
  8. xor rax, rax
  9.  
  10. assembly endp
  11. end
To copy to clipboard, switch view to plain text mode 

Whenever I attempt to compile the program I get an error message stating that the symbol assembly cannot be found.
I'm really desperate and need someone help me with this problem
I've been browsing the internet for hours but couldn't get a decent solution