compiling our application software using eclipse

Topics for the Eclipse Environment
Post Reply
psmith
Posts: 1
Joined: Thu Feb 19, 2009 6:36 am

compiling our application software using eclipse

Post by psmith »

I am currently trying to import our application software into the netburner tools but am having difficulty.
I have implemented their mod5270factorydemo in the nburn/eclipse/workspace directory and this imports and compiles no problem.

however,
when I try and create a project for our application software, I get a lot of undefined messages as if it is not seeing or picking up the variables from the nburn include directories

the includes are the standard nburn includes generated by the compiler plus the following that I have added paths by selecting preferences, and gnuc++ compiler and directories
workspace\mbtcp
workspace\include
the workspace is c:\software development and the project name is batch blender.

when I compile the application, it does not have any errors saying that it could not find the header files but it has a load of undefined variables from the ftpd.cpp file as follows

the errors are as follows
Severity and Description Path Resource Location Creation Time Id
C:\release\nburn\system/ftpd.cpp undefined reference to `FTPD_AbleToCreateFile' batch blender line 864 1235056339585 1429
C:\release\nburn\system/ftpd.cpp undefined reference to `FTPD_CreateSubDirectory' batch blender line 783 1235056339585 1427
C:\release\nburn\system/ftpd.cpp undefined reference to `FTPD_DeleteFile' batch blender line 828 1235056339585 1426
C:\release\nburn\system/ftpd.cpp undefined reference to `FTPD_DeleteSubDirectory' batch blender line 737 1235056339585 1428
C:\release\nburn\system/ftpd.cpp undefined reference to `FTPD_DirectoryExists' batch blender line 979 1235056339585 1425
C:\release\nburn\system/ftpd.cpp undefined reference to `FTPD_FileExists' batch blender line 540 1235056339585 1434
C:\release\nburn\system/ftpd.cpp undefined reference to `FTPD_GetFileFromClient' batch blender line 869 1235056339585 1430
C:\release\nburn\system/ftpd.cpp undefined reference to `FTPD_ListFile' batch blender line 646 1235056339585 1433
C:\release\nburn\system/ftpd.cpp undefined reference to `FTPD_ListFile' batch blender line 687 1235056339585 1432
C:\release\nburn\system/ftpd.cpp undefined reference to `FTPD_ListSubDirectories' batch blender line 687 1235056339585 1431
C:\release\nburn\system/ftpd.cpp undefined reference to `FTPD_Rename' batch blender line 1060 1235056339585 1424
C:\release\nburn\system/ftpd.cpp undefined reference to `FTPD_SendFileToClient' batch blender line 545 1235056339585 1435
C:\release\nburn\system/ftpd.cpp undefined reference to `FTPDSessionEnd' batch blender line 236 1235056339585 1437
C:\release\nburn\system/ftpd.cpp undefined reference to `FTPDSessionEnd' batch blender line 259 1235056339585 1436
C:\release\nburn\system/ftpd.cpp undefined reference to `FTPDSessionStart' batch blender line 189 1235056339585 1438


any ideas would be apreciated,
thanks,
Paraic
rnixon
Posts: 833
Joined: Thu Apr 24, 2008 3:59 pm

Re: compiling our application software using eclipse

Post by rnixon »

All the path stuff is very important. When you say you are compiling your project, what exactly do you mean? Separate workspace? What is the workspace path, etc.
thomastaranowski
Posts: 82
Joined: Sun May 11, 2008 2:17 pm
Location: Los Angeles, CA
Contact:

Re: compiling our application software using eclipse

Post by thomastaranowski »

It looks like you didn't create your project in eclispe via the
New->Project->netburner->Managed netburner project mechanism, so your
not linking in the appropriate libraries.

For example, my current netburner project has the following "Gnu C/C++
Linker command line:
$
{COMMAND} ${DASHM} ${LDFLAGS} -Wl,-Map="${ProjName}.map" ${INPUTS}
${FLAGS} -Wl,--start-group,${NBLIBS} -Wl,--end-group
${OUTPUT_FLAG}${OUTPUT_PREFIX}${OUTPUT}
Where NBLIBS has the following:
c:\Nburn\lib\MOD5282.a c:\Nburn\lib\Netburner.a , etc.

If you don't have the above settings (translated for 5270 of course),
then add them in.
- Show quoted text -

On Thu, Feb 19, 2009 at 7:36 AM, NetBurner Community Forum
<support@embeddedethernet.com> wrote:
> User: psmith (psmith@tsm-controls.com)
> Subject: compiling our application software using eclipse
> Thread: compiling our application software using eclipse
> Forum: General NetBurner Forums « NetBurner's Eclipse IDE
> Mode: post
> Actions: [reply]
[edit] [delete] [info] [pm] [email]
> I am currently trying to import our application software into the netburner
> tools but am having difficulty.
> I have implemented their mod5270factorydemo in the nburn/eclipse/workspace
> directory and this imports and compiles no problem.
>
> however,
> when I try and create a project for our application software, I get a lot of
> undefined messages as if it is not seeing or picking up the variables from
> the nburn include directories
>
> the includes are the standard nburn includes generated by the compiler plus
> the following that I have added paths by selecting preferences, and gnuc++
> compiler and directories
> workspace\mbtcp
> workspace\include
> the workspace is c:\software development and the project name is batch
> blender.
>
> when I compile the application, it does not have any errors saying that it
> could not find the header files but it has a load of undefined variables
> from the ftpd.cpp file as follows
>
> the errors are as follows
> Severity and Description Path Resource Location Creation Time Id
> C:\release\nburn\system/ftpd.cpp undefined reference to
> `FTPD_AbleToCreateFile' batch blender line 864 1235056339585 1429
> C:\release\nburn\system/ftpd.cpp undefined reference to
> `FTPD_CreateSubDirectory' batch blender line 783 1235056339585 1427
> C:\release\nburn\system/ftpd.cpp undefined reference to `FTPD_DeleteFile'
> batch blender line 828 1235056339585 1426
> C:\release\nburn\system/ftpd.cpp undefined reference to
> `FTPD_DeleteSubDirectory' batch blender line 737 1235056339585 1428
> C:\release\nburn\system/ftpd.cpp undefined reference to
> `FTPD_DirectoryExists' batch blender line 979 1235056339585 1425
> C:\release\nburn\system/ftpd.cpp undefined reference to `FTPD_FileExists'
> batch blender line 540 1235056339585 1434
> C:\release\nburn\system/ftpd.cpp undefined reference to
> `FTPD_GetFileFromClient' batch blender line 869 1235056339585 1430
> C:\release\nburn\system/ftpd.cpp undefined reference to `FTPD_ListFile'
> batch blender line 646 1235056339585 1433
> C:\release\nburn\system/ftpd.cpp undefined reference to `FTPD_ListFile'
> batch blender line 687 1235056339585 1432
> C:\release\nburn\system/ftpd.cpp undefined reference to
> `FTPD_ListSubDirectories' batch blender line 687 1235056339585 1431
> C:\release\nburn\system/ftpd.cpp undefined reference to `FTPD_Rename' batch
> blender line 1060 1235056339585 1424
> C:\release\nburn\system/ftpd.cpp undefined reference to
> `FTPD_SendFileToClient' batch blender line 545 1235056339585 1435
> C:\release\nburn\system/ftpd.cpp undefined reference to `FTPDSessionEnd'
> batch blender line 236 1235056339585 1437
> C:\release\nburn\system/ftpd.cpp undefined reference to `FTPDSessionEnd'
> batch blender line 259 1235056339585 1436
> C:\release\nburn\system/ftpd.cpp undefined reference to `FTPDSessionStart'
> batch blender line 189 1235056339585 1438
>
>
> any ideas would be apreciated,
> thanks,
> Paraic
>
>
>



--
Thomas Taranowski
Certified netburner consultant
baringforge.com
roland.ames

Re: compiling our application software using eclipse

Post by roland.ames »

The functions shown as undefined references should be supplied by you.

See 8.FTP Server Library in "NetBurnerRunTimeLibraries.pdf"
Post Reply