フィルターのクリア

Why do I have a LINKING APPLICATION failure? (E) #A0307-D Symbol:

8 ビュー (過去 30 日間)
Ian
Ian 2012 年 8 月 20 日
回答済み: songul senyurt 2021 年 3 月 15 日
I have a real-time multi-processor application including a number of s-functions which I have been able to compile fine using matlab 2006b on a windows XP PC. But when trying to build using matlab 2008b on windows7(32bit) the build is failing with the following error:
LINKING APPLICATION ...
< lnkppc >
(E) #A0307-D Symbol: Buffer_DS1005 in file: DynSim_Pre2_Sim_Import.o50 already defined in file: DynSim_Pre2.o50
(E) #A0307-D Symbol: Brd_1_NoLines_17 in file: DynSim_Pre2_Sim_Import.o50 already defined in file: DynSim_Pre2.o50
........etc........
Errors: 183, Warnings: 0
-- call "C:\PPCTools37\BIN\lnkppc.exe" -QmsA0314 -QmeA0307 -QmeA0329 -m..\master.map -o ..\master.ppc -c _tmp_master.lk
*LINKING FAILED (1)*
MAKE PROCESS ABORTED
being as this model built fine on my XP platform I'm sure it is a compatibility issue somewhere but I struggling to see where the issue is.
The source code for the s-function .dll's has been compiled in visual studio 2008
Please see below for version details;
MATLAB Version 7.7 (R2008b)
Simulink Version 7.2 (R2008b)
Control System Toolbox Version 8.2 (R2008b)
Filter Design Toolbox Version 4.4 (R2008b)
Fixed-Point Toolbox Version 2.3 (R2008b)
Real-Time Workshop Version 7.2 (R2008b)
Signal Processing Blockset Version 6.8 (R2008b)
Signal Processing Toolbox Version 6.10 (R2008b)
Simulink Control Design Version 2.4 (R2008b)
Spreadsheet Link EX Version 3.0.2 (R2008b)
Stateflow Version 7.2 (R2008b)
Stateflow Coder Version 7.2 (R2008b)
dSPACE APPLTools LABELINTERFACE Version 3.7
dSPACE ControlDesk to Simulink Interface Version 3.7
dSPACE MATLAB Integration Main Version 2.0
dSPACE MLIB/MTRACE MATLAB-dSPACE Interface Libr... Version 4.7.1
dSPACE RTI CAN Blockset Version 2.7
dSPACE RTI FPGA Programming Blockset Version 2.0
dSPACE RTI Gigalink Blockset Version 2.1
dSPACE RTI for Multiprocessor Systems RTI-MP Version 6.2
dSPACE Real-Time Interface (RTI1005) Version 6.6
dSPACE Real-Time Target Shared Utilities Version 1.4
dSPACE Test Automation Blockset Version 1.2.2
-> Options file =
C:\Users\AppData\Roaming\MathWorks\MATLAB\R2008b\mexopts.bat
MATLAB = C:\PROGRA~1\MATLAB\R2008B
-> COMPILER = cl
-> Compiler flags:
COMPFLAGS
= /c /Zp8 /GR /W3 /EHs /D_CRT_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_DEPRECATE /D
_SECURE_SCL=0 /DMATLAB_MEX_FILE /nologo /MD
OPTIMFLAGS = /O2 /Oy- /DNDEBUG
DEBUGFLAGS = /Zi /Fd".mexw32.pdb"
arguments =
Name switch = /Fo
-> Pre-linking commands =
-> LINKER = link
-> Link directives:
LINKFLAGS
= /dll /export:mexFunction /MAP /LIBPATH:"C:\PROGRA~1
\MATLAB\R2008B\extern\lib\win32\microsoft" libmx.lib libmex.lib
libmat.lib /implib:"C:\USERS\APPDATA\LOCAL\TEMP\MEX_02~1
\templib.x" /MACHINE:X86 kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
LINKDEBUGFLAGS = /DEBUG /PDB:".mexw32.pdb"
LINKFLAGSPOST =
Name directive = /out:".mexw32"
File link directive =
Lib. link directive =
Rsp file indicator = @
-> Resource Compiler = rc /fo "mexversion.res"
-> Resource Linker =
----------------------------------------------------------------
Usage:
MEX [option1 ... optionN] sourcefile1 [... sourcefileN]
[objectfile1 ... objectfileN] [libraryfile1 ... libraryfileN]
or (to build an Ada S-function):
MEX [-v] [-g] -ada <sfcn>.ads
If you can give me any advice about what is causing the problem and how I might solve it, it would be very greatly appreciated. If you require more information to help me solve the problem please do not hesitate to ask.
Thanks in advance.
Best regards
Ian

回答 (3 件)

Ian
Ian 2012 年 8 月 22 日
So I have found the answer for this problem now. It turns out that matlab 2008b compilers no longer support the linking method used in my C-code. I have found a work around for now by changing the the configuration parameters from make rti to make_rti LNK_OPTS="-K0 -QmsA0314 -QmeA0329".
This let me build my model but I will need to update my linker method for the future.
I hope this might be useful if anyone else has the problem.

Ayoub
Ayoub 2015 年 3 月 11 日
編集済み: Ayoub 2015 年 3 月 11 日
Hi
Have you any idea about those Linking application and "-K0 -QmsA0314 -QmeA0329" are specific to your model or not?
Thanks Ayoub

songul senyurt
songul senyurt 2021 年 3 月 15 日
Hello,
Before, I was building my model without any problem. But now, I am taking the following error.
Do you have any idea regarding what might cause it?

カテゴリ

Help Center および File ExchangeMulticore Processor Targets についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by