[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wireshark-dev
Subject:    [Wireshark-dev] nmake link error when subdir presents in dissector plugin project
From:       Ran Bao <worksev () gmail ! com>
Date:       2016-01-19 4:11:33
Message-ID: CANOKkbpHN3xEz02j7Ai+1TXOkfedO3aqnMeFZkO3_n3OnxxXMg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello
Currently my project have the similar file structure as follow:

dissector_folder
|----folder
      |----packet-folder-xxx.c
|----packet-xxx.c
|----Makefile.nmake
|----Makefile.common
|--- other files

CMake and automake works fine with this file structure. However, when built
on Windows with nmake tool, the object file "packet-folder-xxx.obj" was
generated and placed at the top level folder:

dissector_folder
|----folder
      |----packet-folder-xxx.c
|----packet-xxx.c
|----Makefile.nmake
|----Makefile.common
|----packet-folder-xxx.obj
|----packet-xxx.obj

While the linker is still looking for "folder/packet-folder-xxx.obj". In
this case, it will generate an error.

I am not familiar with nmake command. There aren't much useful information
online. How can I modifiy Makefile.nmake to make it either look for
"packet-folder-xxx.obj" without "folder" or place the generated object file
next to .c source?

Regards

Regards

Ran
*_____________________________*
*Ran Bao*
*College of Engineering*
*University of Canterbury*
rba90@uclive.ac.nz

[Attachment #5 (text/html)]

<div dir="ltr">Hello<div>Currently my project have the similar file structure as \
follow:</div><div><br></div><div>dissector_folder</div><div>|----folder</div><div>    \
|----packet-folder-xxx.c</div><div>|----packet-xxx.c</div><div>|----Makefile.nmake</div><div>|----Makefile.common</div><div>|--- \
other files</div><div><br></div><div>CMake and automake works fine with this file \
structure. However, when built on Windows with nmake tool, the object file \
&quot;packet-folder-xxx.obj&quot; was generated and placed at the top level \
folder:<br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div \
dir="ltr"><br></div><div \
dir="ltr"><div>dissector_folder</div><div>|----folder</div><div>         \
|----packet-folder-xxx.c</div><div>|----packet-xxx.c</div><div>|----Makefile.nmake</di \
v><div>|----Makefile.common</div><div>|----packet-folder-xxx.obj</div><div>|----packet-xxx.obj</div><div><br></div><div>While \
the linker is still looking for &quot;folder/packet-folder-xxx.obj&quot;. In this \
case, it will generate an error.  </div><div><br></div><div>I am not familiar with \
nmake command. There aren&#39;t much useful information online. How can I modifiy \
Makefile.nmake to make it either look for &quot;packet-folder-xxx.obj&quot; without \
&quot;folder&quot; or place the generated object file next to .c \
source?</div><div><br></div><div>Regards</div><div><br></div><div><div \
style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px;word-wrap:break-word"><div \
style="word-wrap:break-word"><div style="word-wrap:break-word"><div \
style="word-wrap:break-word"><div style="word-wrap:break-word"><div \
style="word-wrap:break-word"><div style="word-wrap:break-word"><div \
style="margin:0px"><div style="margin:0px"><div style="margin:0px">Regards</div><div \
style="margin:0px;min-height:14px"><br></div><div style="margin:0px">Ran</div><div \
style="margin:0px;font-size:15px;font-family:Calibri"><b>_____________________________</b></div><div \
style="margin:0px;font-size:15px"><b><i>Ran Bao</i></b></div><div \
style="margin:0px"><b>College of Engineering</b></div><div \
style="margin:0px"><b>University of Canterbury</b></div><div \
style="margin:0px;color:rgb(71,135,255)"><span style="text-decoration:underline"><a \
href="mailto:rba90@uclive.ac.nz" \
target="_blank">rba90@uclive.ac.nz</a></span></div><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
 </div></div>



___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@wireshark.org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@wireshark.org?subject=unsubscribe

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic