WARP Project Forums - Wireless Open-Access Research Platform

You are not logged in.

#1 2017-Jul-31 07:54:26

simhachalam
Member
Registered: 2017-Jul-27
Posts: 6

how to overcome this error 1)pnet.mex64: fatal error LNK1120 failed

Iam doing project using warp boards in that while accessing one folder (name:tcp_udp_ip_2.0.6c) i got a error like this

1)pnet.mex64: fatal error LNK1120:19 unresolved externals
2)link of 'pnet.mexw64 'failed

how to overcome this error please help me

Last edited by simhachalam (2017-Jul-31 07:57:55)

Offline

 

#2 2017-Jul-31 08:47:24

chunter
Administrator
From: Mango Communications
Registered: 2006-Aug-24
Posts: 1212

Re: how to overcome this error 1)pnet.mex64: fatal error LNK1120 failed

Please do not create duplicate posts on the forums since it clutters the results for others searching and we at Mango will see your question wherever you post it.

1. Have you followed all the steps on the MEX compilation page? If so, at which step are you observing errors?
2. When you run wl_setup.m, have you tried using the Java transport? It's slower than the pre-compiled MEX transport, but doesn't require any extra compilation steps. Depending on your application, it may be sufficient.

Offline

 

#3 2017-Aug-02 23:54:00

simhachalam
Member
Registered: 2017-Jul-27
Posts: 6

Re: how to overcome this error 1)pnet.mex64: fatal error LNK1120 failed

Thanks for the reply

1)I have executed the contents of MEX complilation page. I have run the (C:\WARP_Repository\ResearchApps\PHY\WARPLAB\WARPLab7\M_Code_Reference\mex\wl_mex_udp_transport.c) file through interfacing the Microsoft visual c++ 2010 with MATLAB  and  i got file created as 'wl_mex_udp_transport.mexw64'.

But we want 'pnet.mexw64' file created when run the command in command prompt  like ' mex -O pnet.c wsock32.lib -DWIN32'
please help me ,

2)And i have another problem: In (local disk C: MATLAB/R2013a/sys/lcc ) we don't have any lib,mex files except include file.

Iam using windows 7 64bit .

Offline

 

#4 2017-Aug-03 09:14:21

murphpo
Administrator
From: Mango Communications
Registered: 2006-Jul-03
Posts: 5159

Re: how to overcome this error 1)pnet.mex64: fatal error LNK1120 failed

But we want 'pnet.mexw64' file created when run the command in command prompt  like ' mex -O pnet.c wsock32.lib -DWIN32'

Why do you want pnet.mexw64? The WARPLab Reference Design hasn't used pnet in a *very* long time. If you're using WARP v3, you should be using the latest WARPLab Reference Design (currently v7.7.1) and following the WARPLab Quick Start instructions for setting up your MATLAB+WARPLab environment. And if you're using Win7/64-bit you can use the pre-compiled .mex binary we include in the WARPLab ref design archive - you don't even need to run the mex compilation step.

Offline

 

Board footer