Loading ...
Sorry, an error occurred while loading the content.

a link message problem when testing embed demo program

Expand Messages
  • meirab_2001
    when i try to compile + link: /* Filename: embedch1.c */ #include #include int main() { ChInterp_t interp; char *argvv[]={ embedch1.ch ,
    Message 1 of 6 , Nov 12, 2009
    View Source
    • 0 Attachment
      when i try to compile + link:

      /* Filename: embedch1.c */ #include <embedch.h> #include <stdio.h> int main() { ChInterp_t interp; char *argvv[]={"embedch1.ch", NULL}; /* initialize embedded Ch */ Ch_Initialize(&interp, NULL); /* run an embedded Ch program (embedch1.ch) indicated by argvv */ Ch_RunScript(interp, argvv); /* release memory and terminate the shell */ Ch_End(interp); return 0; } ------------------------------------------------------------------------ /* Flename: embedch1.ch */ #include <stdio.h> int main () { printf ("hello world \n"); return 0; }

      from:
      http://www.softintegration.com/support/faq/embed.html

      in vc2005 (studio) in c++ (project) i include: F:\Ch\extern\include

      and (in linker): F:\Ch\extern\lib

      the result:

      1>------ Rebuild All started: Project: embed1, Configuration: Debug Win32 ------
      1>Deleting intermediate and output files for project 'embed1', configuration 'Debug|Win32'
      1>Compiling...
      1>stdafx.cpp
      1>Compiling...
      1>embedch1.cpp
      1>Compiling manifest to resources...
      1>Linking...
      1>embedch1.obj : error LNK2019: unresolved external symbol _Ch_End referenced in function _main
      1>embedch1.obj : error LNK2019: unresolved external symbol _Ch_RunScript referenced in function _main
      1>embedch1.obj : error LNK2019: unresolved external symbol _Ch_Initialize referenced in function _main
      1>F:\schmidt26_cpp\embed1\Debug\embed1.exe : fatal error LNK1120: 3 unresolved externals
      1>Build log was saved at "file://f:\schmidt26_cpp\embed1\embed1\Debug\BuildLog.htm"
      1>embed1 - 4 error(s), 0 warning(s)
      ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========


      what do i have to do to make the link work?
    • groupsupport@softintegration.com
      ... To compile the demo code, you need to follow the compile and link instructions in Embedded Ch User s guide. You can find the answer in the chapter 1.2.2
      Message 2 of 6 , Nov 12, 2009
      View Source
      • 0 Attachment
        > when i try to compile + link:
        >
        > /* Filename: embedch1.c */ #include <embedch.h> #include <stdio.h> int main() { ChInterp_t interp; char *argvv[]={"embedch1.ch", NULL}; /* initialize embedded Ch */ Ch_Initialize(&interp, NULL); /* run an embedded Ch program (embedch1.ch) indicated by argvv */ Ch_RunScript(interp, argvv); /* release memory and terminate the shell */ Ch_End(interp); return 0; } ------------------------------------------------------------------------ /* Flename: embedch1.ch */ #include <stdio.h> int main () { printf ("hello world \n"); return 0; }
        >
        > from:
        > http://www.softintegration.com/support/faq/embed.html
        >

        To compile the demo code, you need to
        follow the compile and link instructions in Embedded Ch User's guide.

        You can find the answer in the chapter
        1.2.2 Building Executables in Windows Using Visual .NET

        Best regards,

        Tech support
      • M
        hello Tech support - - - - - - - - - - - - - - - - after carefully reading the embedch: 1.2.2 building with visual .net --- the compilation + link went
        Message 3 of 6 , Nov 13, 2009
        View Source
        • 0 Attachment
          hello Tech support
          - - - - - - - - - - - - - - - -
           
          after carefully reading the embedch: 1.2.2 building with  visual .net  --->   the compilation + link went well,
          but when i ran the .exe i recieved a licence notice of:
           
          embeded ch 6.1.0 evaluation licence has expired.
          i need a new student / evaluation licence in order to run the .exe file.
           
          thank you for your kind help.
           
          meir abramson
           
           
          ----- Original Message -----
          Sent: Friday, November 13, 2009 9:18 AM
          Subject: Re: [ch_language] a link message problem when testing embed demo program

           

          > when i try to compile + link:
          >
          > /* Filename: embedch1.c */ #include <embedch.h> #include <stdio.h> int main() { ChInterp_t interp; char *argvv[]={"embedch1 .ch", NULL}; /* initialize embedded Ch */ Ch_Initialize( &interp, NULL); /* run an embedded Ch program (embedch1.ch) indicated by argvv */ Ch_RunScript( interp, argvv); /* release memory and terminate the shell */ Ch_End(interp) ; return 0; } ------------ --------- --------- --------- --------- --------- - /* Flename: embedch1.ch */ #include <stdio.h> int main () { printf ("hello world \n"); return 0; }
          >
          > from:
          > http://www.softinte gration.com/ support/faq/ embed.html
          >

          To compile the demo code, you need to
          follow the compile and link instructions in Embedded Ch User's guide.

          You can find the answer in the chapter
          1.2.2 Building Executables in Windows Using Visual .NET

          Best regards,

          Tech support

        • groupsupport@softintegration.com
          ... You may download the latest build of standard edition and embedded ch eval to try again. the ch and embed ch eval need to be uninstalled first. It expires
          Message 4 of 6 , Nov 13, 2009
          View Source
          • 0 Attachment
            > hello Tech support
            > - - - - - - - - - - - - - - - -
            >
            > after carefully reading the embedch: 1.2.2 building with visual .net ---> the compilation + link went well,
            > but when i ran the .exe i recieved a licence notice of:
            >
            > embeded ch 6.1.0 evaluation licence has expired.
            > i need a new student / evaluation licence in order to run the .exe file.
            >

            You may download the latest build of standard edition and embedded ch eval to try again. the ch and embed ch eval need to be uninstalled first.
            It expires in 30 days.

            Best Regards,

            Tech support
          • M
            hello ch Tech support - - - - - - - - - - - - - - - - - i prefer to buy a licence that allows me to do 3 things: read a .ch program (or a few, one after one)
            Message 5 of 6 , Nov 14, 2009
            View Source
            • 0 Attachment
              hello ch Tech support
              - - - - - - - - - - - - - - - - -
               
              i prefer to buy a licence that allows me to do 3 things:
               
              read a .ch program (or a few, one after one) from a DB, execute it and "move" the data / structures from one interpreted program to the other
              for further work. (need example, if there is).
               
              the DB can be a simple one like: mysql. (there is a need to read the .ch program (text) from the DB.
               
              if you have an example of c++ ----> (embeded) .ch ---> that calls .cobol program, then it helps me a lot (saves time).
               
              and it all must run not from the ide but from the disk.
               
              please tell me what is the price for the 1 licence for me? ch?  (sdk)?
               
              thank you
              meir abramson
               
               
               
               
              ----- Original Message -----
              Sent: Saturday, November 14, 2009 7:10 AM
              Subject: Re: [ch_language] a link message problem when testing embed demo program

               

              > hello Tech support
              > - - - - - - - - - - - - - - - -
              >
              > after carefully reading the embedch: 1.2.2 building with visual .net ---> the compilation + link went well,
              > but when i ran the .exe i recieved a licence notice of:
              >
              > embeded ch 6.1.0 evaluation licence has expired.
              > i need a new student / evaluation licence in order to run the .exe file.
              >

              You may download the latest build of standard edition and embedded ch eval to try again. the ch and embed ch eval need to be uninstalled first.
              It expires in 30 days.

              Best Regards,

              Tech support

            • groupsupport@softintegration.com
              ... I will forward to somebody from our company to contact you in detail. Best regards, Tech support
              Message 6 of 6 , Nov 16, 2009
              View Source
              • 0 Attachment
                > hello ch Tech support
                > - - - - - - - - - - - - - - - - -
                >
                > i prefer to buy a licence that allows me to do 3 things:
                >
                > read a .ch program (or a few, one after one) from a DB, execute it and "move" the data / structures from one interpreted program to the other
                > for further work. (need example, if there is).
                >
                > the DB can be a simple one like: mysql. (there is a need to read the .ch program (text) from the DB.
                >
                > if you have an example of c++ ----> (embeded) .ch ---> that calls .cobol program, then it helps me a lot (saves time).
                >
                > and it all must run not from the ide but from the disk.
                >
                > please tell me what is the price for the 1 licence for me? ch? (sdk)?
                >

                I will forward to somebody from our company to contact you in detail.

                Best regards,

                Tech support


                > thank you
                > meir abramson
                > meirab@...
                >
                >
                >
                >
                > ----- Original Message -----
                > From: groupsupport@...
                > To: ch_language@yahoogroups.com
                > Sent: Saturday, November 14, 2009 7:10 AM
                > Subject: Re: [ch_language] a link message problem when testing embed demo program
                >
                >
                >
                > > hello Tech support
                > > - - - - - - - - - - - - - - - -
                > >
                > > after carefully reading the embedch: 1.2.2 building with visual .net ---> the compilation + link went well,
                > > but when i ran the .exe i recieved a licence notice of:
                > >
                > > embeded ch 6.1.0 evaluation licence has expired.
                > > i need a new student / evaluation licence in order to run the .exe file.
                > >
                >
                > You may download the latest build of standard edition and embedded ch eval to try again. the ch and embed ch eval need to be uninstalled first.
                > It expires in 30 days.
                >
                > Best Regards,
                >
                > Tech support
                >
                >
                >
              Your message has been successfully submitted and would be delivered to recipients shortly.