Code: Select all
Procedure.l Add(a.l,b.l)
ProcedureReturn a + b
EndProcedure
; IDE Options = PureBasic 4.40 (Windows - x86)
; CursorPosition = 146
; FirstLine = 120
; Folding = -
; EnableThread
; EnableAdmin
; LinkerOptions = Int.txt
Code: Select all
/EXPORT:_Add@8,NONAME
/EXPORT:symbol[=[module.]symbol][,@ordinal[,NONAME]][,DATA]
/EXPORT:linker,_Add@8,NONAME
Why the error?
C++ to
#pragma comment(linker, "/EXPORT:_Add,@1,NONAME")
--------------------------------
I would like to create an EXE with the export functions.
C++ Has been achieved, I would like to use PB to achieve.
